微信小程序評分組件
發表時間:2022-9-14
發布人:葵宇科技
瀏覽次數:19
multiple-rate-wxapp
微信小程序評分組件 wxapp multiple rate component
下載
git clone https://github.com/simsir-lin/multiple-rate-wxapp.git
預覽
打開微信web開發者工具,'本地小程序項目 - 添加項目',項目目錄選擇為 multiple-rate-wxapp 的目錄就可以了,添加項目后就可以進行組件源碼的查看和預覽demo了。
使用
將 multiple-rate-wxapp 目錄下的components文件夾下的
multiple-rate
拷貝到你的小程序目錄下在你要使用的頁面的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
貢獻
如果你有好的意見或建議,歡迎給我提issue!