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

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

Related Packages

@scayle/storefront-nuxt

Nuxt integration for the SCAYLE Commerce Engine and Storefront API

152,903
nuxt-tsconfig-stub

Stub Nuxt's generated tsconfig.json at installation

70,835 24
irdd

vue组件深度封装和方法库

1,605 2
kuranuxt

Look at the Nuxt 3 documentation to learn more.

871 0
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