1.0.10 • Published 6 years ago

nuxt-element-ui v1.0.10

Weekly downloads
193
License
MIT
Repository
github
Last release
6 years ago

nuxt-element-ui

npm npm (scoped with tag) NpmLicense

Add ElementUI A Vue.js 2.0 UI Toolkit for Web to Nuxt.

Setup

  • Add nuxt-element-ui dependency using yarn or npm to your project
yarn add nuxt-element-ui
  • Add nuxt-element-ui to modules section of nuxt.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

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago