Nuxt.js using Mint-ui Element-ui

Source: Internet
Author: User

1. First download the plugin you need to use

/* Element-ui */npm i element-ui-s/* mint-ui */npm i mint-ui-s

2, then create the corresponding JS file in the plugins element-ui.js/mint-ui.js

Import vue from ' Vue ' import elementui from ' element-ui ' import ' Element-ui/lib/theme-chalk/index.css ' Vue.use (elementui )
Import vue from ' Vue ' import mintui from ' mint-ui ' import ' Mint-ui/lib/style.css ' Vue.use (Mintui)

3, configuring in Nuxt.config.js

Vendor: [' Element-ui ', ' mint-ui ']//plugins in the Build object and/or below the build object sibling
plugins: [    ' ~plugins/element-ui '},    ' ~plugins/mint-ui '},  ]

This allows the use of Element-ui,mint-ui two frames.

Nuxt.js using Mint-ui Element-ui

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.