Migrated repository
Go to file
2016-09-03 20:30:59 +08:00
bin init message 2016-08-15 11:51:25 +08:00
examples update readme 2016-09-03 20:30:59 +08:00
packages Table: fix inline-template 2016-09-02 19:23:16 +08:00
scripts fix encoding apostrophes/some components change to new template 2016-08-26 15:37:38 +08:00
src Popover: fix visible 2016-09-02 19:32:17 +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
.travis.yml update readme 2016-09-03 20:30:59 +08:00
CHANGELOG.md fix input-number 2016-09-02 12:12:03 +08:00
components.json menu item group 2016-08-23 11:32:37 +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 readme 2016-09-03 20:30:59 +08:00
README.md update readme 2016-09-03 20:30:59 +08:00

Element

UI Elements for admin page.

Docs

Comming soon

Demo

Usages

npm install element-ui@next

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

development

Building Tool Installation

Element UI is built with cooking. So before running it you'll need to install cooking globally.

$ npm install cooking -g

Commands

$ make install                        ---  install dependencies
$ make dev                            ---  develop mode
$ make dist                           ---  compile the project
$ make dist-all                       ---  compile each component individually

Changelog

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

LICENSE

MIT