mirror of
https://gitee.com/beecue/fastbee.git
synced 2025-12-18 00:45:55 +08:00
智慧宿舍系统小程序
This commit is contained in:
34
wechat/miniprogram/node_modules/@vant/weapp/dist/rate/index.wxml
generated
vendored
Normal file
34
wechat/miniprogram/node_modules/@vant/weapp/dist/rate/index.wxml
generated
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
<wxs src="../wxs/utils.wxs" module="utils" />
|
||||
|
||||
<view
|
||||
class="van-rate custom-class"
|
||||
bind:touchmove="onTouchMove"
|
||||
>
|
||||
<view
|
||||
class="van-rate__item"
|
||||
wx:for="{{ innerCountArray }}"
|
||||
wx:key="index"
|
||||
style="padding-right: {{ index !== count - 1 ? utils.addUnit(gutter) : '' }}"
|
||||
>
|
||||
<van-icon
|
||||
name="{{ index + 1 <= innerValue ? icon : voidIcon }}"
|
||||
class="van-rate__icon"
|
||||
style="font-size: {{ utils.addUnit(size) }}"
|
||||
custom-class="icon-class"
|
||||
data-score="{{ index }}"
|
||||
color="{{ disabled ? disabledColor : index + 1 <= innerValue ? color : voidColor }}"
|
||||
bind:click="onSelect"
|
||||
/>
|
||||
|
||||
<van-icon
|
||||
wx:if="{{ allowHalf }}"
|
||||
name="{{ index + 0.5 <= innerValue ? icon : voidIcon }}"
|
||||
class="{{ utils.bem('rate__icon', ['half']) }}"
|
||||
style="font-size: {{ utils.addUnit(size) }}"
|
||||
custom-class="icon-class"
|
||||
data-score="{{ index - 0.5 }}"
|
||||
color="{{ disabled ? disabledColor : index + 0.5 <= innerValue ? color : voidColor }}"
|
||||
bind:click="onSelect"
|
||||
/>
|
||||
</view>
|
||||
</view>
|
||||
Reference in New Issue
Block a user