Migrated repository
Go to file
Leopoldthecoder ca59b21011 update dialog
2016-08-08 13:59:26 +08:00
bin update menu, tag, button, progress 2016-07-29 16:50:26 +08:00
examples update dialog 2016-08-08 13:59:26 +08:00
fe.element Initial commit 2016-07-27 14:15:02 +08:00
packages update dialog 2016-08-08 13:59:26 +08:00
scripts update route 2016-07-27 17:05:28 +08:00
src update menu, tag, button, progress 2016-07-29 16:50:26 +08:00
.babelrc update pagination 2016-07-29 17:46:16 +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 Initial commit 2016-07-27 14:15:02 +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 update dialog 2016-08-08 13:59:26 +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