bes-ui
bes-ui
一个基于Vue CLI 3.0,Babel7,VUE2.6封装的VUE-UI组件库模版,内置两个组件component1,和component2,支持统一加载和按需加载,可以按需分别加载对应组件的js和css,模块化的方式基本参考ElemenuUI,按需加载用babel-plugin-component组件支持。
Installing
npm install bes-ui --save
在 unpkg 上获取
<!-- 引入样式 -->
<link rel="stylesheet" href="https://unpkg.com/bes-ui/package/index.css">
<!-- 引入脚本 -->
<script src="https://unpkg.com/bes-ui/package/index.umd.min.js"></script>
Example
// 统一加载
import BesUI from 'bes-ui'
Vue.use(BesUI)
// 只加载component1
import { component1 } from 'bes-ui'
Vue.use(component1)
// 加载component1和component2
import { component1 , component2} from 'bes-ui'
Vue.use(component1)
Vue.use(component2)
标签
<component1></component1>
<component2></component2>
按需加载功能只针对有Babel配置的项目,单纯用script和link的方式引入js和样式是全量引入
License
Copyright (c) 2018-present, BothEyes1993
Related Packages
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 1.3.2 | ^2.6.10 | MIT | |
| 1.3.1 | ^2.6.10 | MIT | |
| 1.3.0 | ^2.6.10 | MIT | |
| 1.2.9 | ^2.6.10 | MIT | |
| 1.2.8 | ^2.6.10 | MIT | |
| 1.2.7 | ^2.6.10 | MIT | |
| 1.2.6 | ^2.6.10 | MIT | |
| 1.2.5 | ^2.6.10 | MIT | |
| 1.2.3 | ^2.6.10 | MIT | |
| 1.2.0 | ^2.6.10 | MIT | |
| 1.1.9 | ^2.6.10 | MIT | |
| 1.1.8 | ^2.6.10 | MIT | |
| 1.1.7 | MIT | ||
| 1.1.5 | MIT | ||
| 1.1.4 | MIT | ||
| 1.1.3 | MIT | ||
| 1.1.2 | MIT | ||
| 1.1.1 | MIT | ||
| 1.1.0 | MIT | ||
| 1.0.9 | MIT | ||
| 1.0.8 | MIT | ||
| 1.0.7 | MIT | ||
| 1.0.6 | MIT | ||
| 1.0.5 | MIT | ||
| 1.0.4 | MIT | ||
| 1.0.3 | MIT | ||
| 1.0.2 | MIT | ||
| 1.0.1 | MIT | ||
| 1.0.0 | MIT |