Тайлбар байхгүй

Leopoldthecoder 0dba1da935 misc doc updates 9 жил өмнө
.github e4b09f66ce fix contribution url 9 жил өмнө
bin a7c30b5148 package: add lint script & lock vue version 9 жил өмнө
examples 0dba1da935 misc doc updates 9 жил өмнө
packages 0dba1da935 misc doc updates 9 жил өмнө
scripts a7c30b5148 package: add lint script & lock vue version 9 жил өмнө
src a7c30b5148 package: add lint script & lock vue version 9 жил өмнө
.babelrc 3b539efb3a Use cooking@1.0.0-rc.2 9 жил өмнө
.eslintignore e320f43c2d Initial commit 9 жил өмнө
.eslintrc 3140e784b9 update pagination 9 жил өмнө
.gitignore e320f43c2d Initial commit 9 жил өмнө
.travis.yml 38cb32609c update progress 9 жил өмнө
CHANGELOG.md 0dba1da935 misc doc updates 9 жил өмнө
LICENSE da8a486fb2 add LICENSE 9 жил өмнө
Makefile bd2a196c9d package: remove postinstall hook 9 жил өмнө
README.md 0dba1da935 misc doc updates 9 жил өмнө
components.json 03f34f7d32 menu item group 9 жил өмнө
lerna.json e320f43c2d Initial commit 9 жил өмнө
package.json 001584e4ab 1.0.0-rc.3 9 жил өмнө

README.md

Element Build Status npm package NPM downloads

Desktop UI elements for Vue.js 2.0.

Docs

Coming soon

Demo

Demo will come with the documentation. Here is a preview of what a page based on Element looks like:

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, 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

# Recommended use `npminstall` to install packages, it is so fast
$ npm i npminstall -g
$ npminstall

# 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