步骤 1:安装到项目根目录下
cnpm i xiaozhi-xx-miniprogram-ui -S
步骤 2:构建 npm 包 (将 node_modules 变成公共组件直接用
开发工具左上角工具菜单 -》 构建npm包
开发工具右上角详情菜单 -》 本地设置 -》 使用npm模块
{
"usingComponents": {
"qf-btn": "wyq-myui2/button/button"
}
}
<qf-btn type="warn">
hello,webopenfather
</qf-btn>