No Description

Leopoldthecoder e00f5ac9ea misc visual updates - round 2 9 years ago
.github 9216de022f Replace npmcdn.com with unpkg.com 9 years ago
bin a7c30b5148 package: add lint script & lock vue version 9 years ago
examples e00f5ac9ea misc visual updates - round 2 9 years ago
packages e00f5ac9ea misc visual updates - round 2 9 years ago
scripts a7c30b5148 package: add lint script & lock vue version 9 years ago
src 80fe4ce1f3 Tooltip: fix appear in the wrong place 9 years ago
.babelrc 3b539efb3a Use cooking@1.0.0-rc.2 9 years ago
.eslintignore e320f43c2d Initial commit 9 years ago
.eslintrc 3140e784b9 update pagination 9 years ago
.gitignore e320f43c2d Initial commit 9 years ago
.travis.yml 38cb32609c update progress 9 years ago
CHANGELOG.md 33a551d708 update routes 9 years ago
LICENSE da8a486fb2 add LICENSE 9 years ago
Makefile bd2a196c9d package: remove postinstall hook 9 years ago
README.md c9773b22e8 Merge pull request #57 from Leopoldthecoder/master 9 years ago
components.json 03f34f7d32 menu item group 9 years ago
lerna.json e320f43c2d Initial commit 9 years ago
package.json 80fe4ce1f3 Tooltip: fix appear in the wrong place 9 years ago

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