nuxt-element-ui
A Nuxt module for Element UI.
9,327
| Install | |
|---|---|
npm install nuxt-element-ui |
|
| Latest Version: | 1.0.10 |
| Vue: | 2 |
| License: | MIT |
| Last Updated: | Sep 6, 2018 |
| Links: | npm |
Maintainer: gbouteiller
nuxt-element-ui
Add ElementUI A Vue.js 2.0 UI Toolkit for Web to Nuxt.
Setup
- Add
nuxt-element-uidependency using yarn or npm to your project
yarn add nuxt-element-ui
- Add
nuxt-element-uitomodulessection ofnuxt.config.js
{
modules: [
'nuxt-element-ui'
],
elementUI: {
components: ['Button', 'DatePicker'],
locale: 'fr',
},
}
or
{
modules: [
[
'nuxt-element-ui',
{
components: ['Button', 'DatePicker'],
locale: 'fr',
},
],
],
}
- Add Element UI styles.
Options
components
- optional
- Type:
string[] - Default:
[]
Adds specific ElementUI Components to your project. If components is empty, all components will be imported.
locale
- optional
- Type:
string - Default:
en
Sets elementUI locale globally.
Usage
Simply use ElementUI Components inside your single file components.
my-component.vue:
<template>
<el-button>Button</el-button>
</template>
License
MIT License
Related Packages
nuxt-define
One utility function for module authors to define compiler constants for all bui...
13,412,511
Version History
| Version | Released | License |
|---|---|---|
| 1.0.10 | MIT | |
| 1.0.9 | MIT | |
| 1.0.8 | MIT | |
| 1.0.7 | MIT | |
| 1.0.6 | MIT | |
| 1.0.5 | MIT | |
| 1.0.4 | MIT | |
| 1.0.3 | MIT | |
| 1.0.2 | MIT | |
| 1.0.1 | MIT |