30 lines
547 B
Plaintext

<demo-block title="基础用法">
<van-rate
custom-class="van-rate"
data-key="value1"
value="{{ value1 }}"
/>
</demo-block>
<demo-block title="自定义颜色">
<van-rate
custom-class="van-rate"
data-key="value2"
value="{{ value2 }}"
size="{{ 25 }}"
count="{{ 6 }}"
color="#2ba"
void-color="#ceefe8"
bind:change="onChange"
/>
</demo-block>
<demo-block title="禁用状态">
<van-rate
custom-class="van-rate"
data-key="value3"
value="{{ value3 }}"
disabled
/>
</demo-block>