qkmp
v0.0.3
Published
Quick 小程序组件
Downloads
3
Readme
使用说明
初始化项目
在 HBuilderX 中新建 uni-app 项目,进入项目目录,执行:
npm init -y
安装
npm i qkmp
使用
在 script
中引用组件:
import { qmIcon } from '@dcloudio/uni-ui';
//import uniBadge from '@dcloudio/uni-ui/lib/uni-badge/uni-badge.vue' //也可使用此方式引入组件
export default {
components: { qmIcon }
};
在 template
中使用组件:
<qm-icon css=" " />
uni-ui 已支持的组件列表
| 组件名 | 引用路径 | 说明 | | ------- | -------- | ------------------------------------ | | qm-icon | '' | 图标 |
其他
- qkmp 目前支持编译到:H5、App、小程序
- 本页面介绍使用 npm 的安装使用方式,也可下载相关组件直接使用,组件下载地址见上表
- 支持使用 Vue.use() 的方式安装
- 依赖 less,若是 HBuilderX 中创建的 uni-app 项目,需要在 HBuilderX 中安装 less 插件