No Description

baiyaaaaa b51aeab34b Merge pull request #102 from baiyaaaaa/next-doc 9 years ago
bin 7e05dab840 init message 9 years ago
examples 2d9a77b474 index 9 years ago
fe.element e320f43c2d Initial commit 9 years ago
packages c41f8d5bb7 Merge pull request #99 from csvwolf/next 9 years ago
scripts 1b63c03dd7 add footer and demo-block 9 years ago
src e86f573ce6 update router 9 years ago
.babelrc 37a4b374f1 Update checkbox and tree 9 years ago
.eslintignore e320f43c2d Initial commit 9 years ago
.eslintrc 3140e784b9 update pagination 9 years ago
.gitignore e320f43c2d Initial commit 9 years ago
CHANGELOG.md e320f43c2d Initial commit 9 years ago
Makefile e320f43c2d Initial commit 9 years ago
README.md e320f43c2d Initial commit 9 years ago
components.json 03f34f7d32 menu item group 9 years ago
fe.element_build.yml e320f43c2d Initial commit 9 years ago
lerna.json e320f43c2d Initial commit 9 years ago
package.json 2d9a77b474 index 9 years ago

README.md

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