Go to file
Leopoldthecoder 8de485ad82 cancel inline-style for table <td> white-space 2016-09-02 15:41:52 +08:00
bin
examples cancel inline-style for table <td> white-space 2016-09-02 15:41:52 +08:00
fe.element
packages cancel inline-style for table <td> white-space 2016-09-02 15:41:52 +08:00
scripts
src
.babelrc
.eslintignore
.eslintrc
.gitignore
CHANGELOG.md fix input-number 2016-09-02 12:12:03 +08:00
Makefile
README.md fix changelog 2016-09-01 14:43:47 +08:00
components.json
fe.element_build.yml
lerna.json
package.json

README.md

Element

UI Elements for admin page.

Demo/Docs

http://element-test.faas.elenet.me/

Usages

npm install element-ui

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"
    }
  ]]]
}

Changelog

Details changes for each release are documented in the release notes.

LICENSE

MIT