2016-08-17 13:53:56 +08:00
2016-08-15 11:51:25 +08:00
2016-08-17 13:53:56 +08:00
2016-07-27 14:15:02 +08:00
2016-08-17 13:53:56 +08:00
2016-08-16 16:11:43 +08:00
2016-08-12 14:45:06 +08:00
2016-07-27 14:15:02 +08:00
2016-07-29 17:46:16 +08:00
2016-07-27 14:15:02 +08:00
2016-07-27 14:15:02 +08:00
2016-08-17 13:53:56 +08:00
2016-07-27 14:15:02 +08:00
2016-07-27 14:15:02 +08:00
2016-07-27 14:15:02 +08:00
2016-08-16 16:52:43 +08:00
2016-07-27 14:15:02 +08:00

Element

UI Elements for admin page.

Demo/Docs

https://element-component.github.io/element

Usages

npm i element-ui -S

Quick Start

use babel-plugin-component

import Vue from 'vue'
import Element from 'element-ui'

Vue.use(Element)

// or
import {
  Select,
  Button
  // ...
} from 'element-ui'

Vue.component(Select.name, ElSelect)
Vue.component(Button.name, Button)

(roughly) to

import Vue from 'vue'
import Element from 'element-ui'
import 'element-ui/lib/theme-default/index.css';

Vue.use(Element)

// or
import Select from 'element-ui/lib/select';
import Select from 'element-ui/lib/theme-default/select.css';
import Button from 'element-ui/lib/button';
import Button from 'element-ui/lib/theme-default/button.css';

Vue.component(Select.name, ElSelect)
Vue.component(Button.name, Button)

babel-plugin-component

.babelrc

{
  "plugins": ["xxx", ["component", [
    {
      "libraryName": "element-ui",
      "styleLibraryName": "theme-default"
    }
  ]]]
}

LICENSE

MIT

Description
Languages
Vue 45.5%
JavaScript 43.6%
SCSS 10.7%
Shell 0.2%