Vue3.0 一套移动端轻量级组件库 https://nutui.jd.com/#/index
|
|
8 年 前 | |
|---|---|---|
| dist | 8 年 前 | |
| scripts | 8 年 前 | |
| src | 8 年 前 | |
| .babelrc | 8 年 前 | |
| .gitignore | 8 年 前 | |
| LICENSE | 8 年 前 | |
| README.md | 8 年 前 | |
| package.json | 8 年 前 | |
| postcss.config.js | 8 年 前 | |
| webpack.config.js | 8 年 前 |
<img alt="whistle logo" src="http://nutui.jd.com/asset/img/nutui-logo.png">
基于Vue 2.0的移动端轻量级UI组件库
1、 使用npm安装nutui
npm install nutui --save
1、 在入口文件(如app.js)中引入
import NutUI from 'nutui'
2、 初始化
NutUI.install(Vue)
import Mask from 'nutui/src/package/mask/index'
export default {
data(){
},
components: {
'nut-mask':Mask
},
methods:{
}
}
bash
如遮罩层(Mask)组件,直接使用nut-mask标签即可
<nut-mask :visible="true"><nut-mask>
bash
如对话框(Dialog)组件
this.$dialog(options);
提示框(Toast)组件
this.$toast(msg,during);
每个组件的使用方式请参考具体组件文档。