Migrated repository
Go to file
2016-08-23 18:32:28 +08:00
bin init message 2016-08-15 11:51:25 +08:00
examples fix radio logic & radio document 2016-08-23 18:32:28 +08:00
fe.element Initial commit 2016-07-27 14:15:02 +08:00
packages fix radio logic & radio document 2016-08-23 18:32:28 +08:00
scripts Fix markdown demo token 2016-08-23 13:46:51 +08:00
src Merge pull request #83 from eleme/feat/next-build 2016-08-22 15:51:56 +08:00
.babelrc Update checkbox and tree 2016-08-12 14:45:06 +08:00
.eslintignore Initial commit 2016-07-27 14:15:02 +08:00
.eslintrc update pagination 2016-07-29 17:46:16 +08:00
.gitignore Initial commit 2016-07-27 14:15:02 +08:00
CHANGELOG.md Initial commit 2016-07-27 14:15:02 +08:00
components.json menu item group 2016-08-23 11:32:37 +08:00
fe.element_build.yml Initial commit 2016-07-27 14:15:02 +08:00
lerna.json Initial commit 2016-07-27 14:15:02 +08:00
Makefile Initial commit 2016-07-27 14:15:02 +08:00
package.json Fix markdown demo token 2016-08-23 13:46:51 +08:00
README.md Initial commit 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