Go to file
baiyaaaaa 8fecdaabce Merge pull request #142 from Leopoldthecoder/master
add padding-right when popup shows
2016-09-24 18:09:37 +08:00
.github
bin
examples add padding-right when popup shows 2016-09-23 18:03:16 +08:00
packages add padding-right when popup shows 2016-09-23 18:03:16 +08:00
scripts misc fixed (#117) 2016-09-21 18:45:29 +08:00
src Table: fix dorender in created, fixed #121 2016-09-22 15:41:04 +08:00
.babelrc
.eslintignore
.eslintrc
.gitignore
.travis.yml
CHANGELOG.md submenu auto expand based on default-active value 2016-09-23 10:27:36 +08:00
LICENSE
Makefile misc update 2016-09-22 13:54:20 +08:00
README.md add starter links (#140) 2016-09-23 16:38:35 +08:00
components.json
lerna.json
package.json add padding-right when popup shows 2016-09-23 18:03:16 +08:00

README.md

Element

Build Status npm package NPM downloads JS gzip size CSS gzip size Join the chat at https://gitter.im/ElemeFE/element

Desktop UI elements for Vue.js 2.0.

Install

npm install element-ui@next -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, Select)
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 'element-ui/lib/theme-default/select.css'
import Button from 'element-ui/lib/button'
import 'element-ui/lib/theme-default/button.css'

Vue.component(Select.name, Select)
Vue.component(Button.name, Button)

babel-plugin-component

.babelrc

{
  "plugins": ["xxx", ["component", [
    {
      "libraryName": "element-ui",
      "styleLibraryName": "theme-default"
    }
  ]]]
}

Development

Recommend: node >= 4 npm >= 3

# development => install packages -> build icon etc. -> run webpack
$ npm run dev

# build => build all component
$ npm run dist

Changelog

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

Contribution

Please make sure to read the Contributing Guide before making a pull request.

LICENSE

MIT