weui有纯UI版和组件库版,纯UI版有你这个UI样式,但是组件库版没有, 纯UI版weui-wxss: 源码和文档地址https://github.com/Tencent/weui-wxss/tree/master/,demo地址:https://weui.io/,纯UI版要使用引入weui.wxss(按需就只复制对应组件的样式),然后复制对应组件代码到自己项目,逻辑要自己写 组件库版:源码和文档地址https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/extended/weui/ 文档:https://wechat-miniprogram.github.io/weui/docs/ 源码:https://github.com/wechat-miniprogram/weui-miniprogram 个人建议:不建议使用weui,文档很垃圾,像是写到一半匆忙发出来的,你看到的demo文档未必找得到,自己看源码吧,妥妥的效率杀器
引入weui steps报错not found是怎么回事啊?我引入weui的方式是扩展包引入 "useExtendedLib": { "weui": true }, 在页面的json也配置了 "usingComponents": { "mp-icon": "weui-miniprogram/icon/icon", "mp-uploader":"weui-miniprogram/uploader/uploader" }, 之前使用icon和uploader的时候就没问题. 但是在另一个页面配置 "usingComponents": { "mp-steps": "weui-miniprogram/steps/steps" }, 后使用 <mp-steps current="1" active-color="#1AAD19"> <mp-step>步骤一</mp-step> <mp-step>步骤二</mp-step> <mp-step>步骤三</mp-step> </mp-steps> 却出现了报错 Component is not found in path "miniprogram_npm/weui-miniprogram/steps/steps" (using by "pages/Taskdetails/taskComplain/taskComplain")(env: Windows,mp,1.06.2303060; lib: 2.30.2)
2023-05-16