A Nuxt module for Element UI.
npm install nuxt-element-ui  
> Add ElementUI A Vue.js 2.0 UI Toolkit for Web to Nuxt.
- Add nuxt-element-ui dependency using yarn or npm to your project
``shell`
yarn add nuxt-element-ui
- Add nuxt-element-ui to modules section of nuxt.config.js
`js
{
modules: [
'nuxt-element-ui'
],
elementUI: {
components: ['Button', 'DatePicker'],
locale: 'fr',
},
}
`
or
`js`
{
modules: [
[
'nuxt-element-ui',
{
components: ['Button', 'DatePicker'],
locale: 'fr',
},
],
],
}
- Add Element UI styles.
- optional
- Type: string[][]
- Default:
Adds specific ElementUI Components to your project. If components is empty, all components will be imported.
- optional
- Type: stringen
- Default:
Sets elementUI locale globally.
Simply use ElementUI Components inside your single file components.
my-component.vue:
`html``
MIT License