coui
Coracle UI
Coracle Mobile UI 是在Mint-ui 2.1.1版(Vue 2.0) 基础上进行二次开发的产品. 修改内容包含:
- 项目名称
- 组件前缀
- 样式前缀
- 新增组件&Demo
安装
npm i coui -S
使用
引用所有组件.
import Vue from 'vue'
import Coui from 'coui';
Vue.use(Coui);
引用指定组件. (Use babel-plugin-component)
import { Cell, Checklist } from 'coui';
Vue.component(Cell.name, Cell);
Vue.component(Checklist.name, Checklist);
等同于
import Vue from 'vue';
import Coui from 'coui';
import 'coui/lib/style.css';
Vue.use(Coui);
// 引用指定组件
import MtRadio from 'coui/lib/radio';
import 'coui/lib/radio/style.css';
Vue.component(MtRadio.name, MtRadio);
babel-plugin-component
- Auto import css file
- Modular import component
安装
npm i babel-plugin-component -D
使用
.babelrc
{
"plugins": ["other-plugin", ["component", [
{ "libraryName": "coui", "style": true }
]]]
}
开发
npm run dev
许可协议
MIT
Related Packages
vue-mobile-detection
Vue.js prototype function `this.$isMobile()` that returns a Boolean value depend...
139,558
69
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 2.0.3 | ^2.1.8 | MIT | |
| 2.0.2 | ^2.1.8 | MIT | |
| 2.0.1 | ^2.1.8 | MIT | |
| 2.0.0 | ^2.1.8 | MIT | |
| 1.0.0 | ^2.1.8 | MIT | |
| 0.6.4 | ^2.1.8 | MIT | |
| 0.6.3 | ^2.1.8 | MIT | |
| 0.6.2 | ^2.1.8 | MIT | |
| 0.6.1 | ^2.1.8 | MIT | |
| 0.6.0 | ^2.1.8 | MIT | |
| 0.5.9 | ^2.1.8 | MIT | |
| 0.5.8 | ^2.1.8 | MIT | |
| 0.5.7 | ^2.1.8 | MIT | |
| 0.5.6 | ^2.1.8 | MIT | |
| 0.5.5 | ^2.1.8 | MIT | |
| 0.5.4 | ^2.1.8 | MIT | |
| 0.5.2 | ^2.1.8 | MIT | |
| 0.5.1 | ^2.1.8 | MIT | |
| 0.5.0 | ^2.1.8 | MIT | |
| 0.4.8 | ^2.1.8 | MIT | |
| 0.4.7 | ^2.1.8 | MIT | |
| 0.4.6 | ^2.1.8 | MIT | |
| 0.4.5 | ^2.1.8 | MIT | |
| 0.4.1 | ^2.1.8 | MIT | |
| 0.4.0 | ^2.1.8 | MIT | |
| 0.3.0 | ^2.1.8 | MIT | |
| 0.2.4 | ^2.1.8 | MIT | |
| 0.2.3 | ^2.1.8 | MIT | |
| 0.2.2 | ^2.1.8 | MIT | |
| 0.2.1 | ^2.1.8 | MIT |
Showing the latest 30 of 50. See every release on npm