微信小程序评分组件 wxapp multiple rate component
下载
打开微信web开发者工具'本地小程序项目 - 添加项目'项目目录选择为 multiple-rate-wxapp 的目录就可以了不在首页项目目录选择为 multiple-rate-wxapp 的目录就可以了添加项目后就可以进行组件源码的查看和预览demo了。使用
在你要使用的页面的json文件中引入组件如:index页面的index.json
{ "navigationBarTitleText": "首页", "usingComponents": { "multiple-rate": "你的目录/multiple-rate/multiple-rate" } }在wxml中即可使用组件
<multiple-rate rate="4" disabled="true"></multiple-rate>如看不明白请直接参考项目实例(/pages/index/index)注意
微信小程序基础库版本至少为1.6.4贡献