aecore-ui
v2.0.3
Published
A Web UI Components built on Vue
Readme
aecore-ui
一个基于Vue2.0版本的Web UI组件库
安装aecore-ui
npm i aecore-ui按需引入
用 babel-plugin-import,该插件是一款 babel 插件,借助此插件只需要引入需要的组件,以达到减小项目体积的目的。
安装 babel-plugin-component:
npm install babel-plugin-component -D修改 .babelrc:
"plugins": [
[
"import",
{
"libraryName": "aecore-ui",
"style": true
}
]
]安装和配置好插件后,即可使用
import {
Button,
Loading
// ...
} from 'aecore-ui'
Vue.use(Button)
Vue.use(Loading)全局引入
import Vue from 'vue'
import aec from 'aecore-ui'
import 'aecore-ui/lib/aec.css';
Vue.use(aec)