mirror of
https://gitee.com/ElemeFE/element.git
synced 2024-11-30 03:07:36 +08:00
Migrated repository
7e34836765
fix select style in form |
||
---|---|---|
bin | ||
examples | ||
fe.element | ||
packages | ||
scripts | ||
src | ||
.babelrc | ||
.eslintignore | ||
.eslintrc | ||
.gitignore | ||
CHANGELOG.md | ||
components.json | ||
fe.element_build.yml | ||
lerna.json | ||
Makefile | ||
package.json | ||
README.md |
Element
UI Elements for admin page.
Demo/Docs
https://element-component.github.io/element
Usages
npm i element-ui -S
Quick Start
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"
}
]]]
}
LICENSE
MIT