Нема описа

spademan 03a60995d6 Table: 在type="index"如果设置了label 优先显示label пре 9 година
.github d09d44fc55 review updates пре 9 година
bin a7c30b5148 package: add lint script & lock vue version пре 9 година
examples b788476f6f bug fixes/add resource download url (#96) пре 9 година
packages 03a60995d6 Table: 在type="index"如果设置了label 优先显示label пре 9 година
scripts 4087e7a474 Merge pull request #93 from QingWei-Li/fix/template-file пре 9 година
src bdda50e627 remove markdown-it-toc-and-anchor пре 9 година
.babelrc 3b539efb3a Use cooking@1.0.0-rc.2 пре 9 година
.eslintignore e320f43c2d Initial commit пре 9 година
.eslintrc 3140e784b9 update pagination пре 9 година
.gitignore 5f2460c50d Update development page пре 9 година
.travis.yml 38cb32609c update progress пре 9 година
CHANGELOG.md b788476f6f bug fixes/add resource download url (#96) пре 9 година
LICENSE da8a486fb2 add LICENSE пре 9 година
Makefile badf5ae12f Add homepage пре 9 година
README.md c9773b22e8 Merge pull request #57 from Leopoldthecoder/master пре 9 година
components.json 03f34f7d32 menu item group пре 9 година
lerna.json e320f43c2d Initial commit пре 9 година
package.json b788476f6f bug fixes/add resource download url (#96) пре 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