2020-05-01 16:34:55 +08:00

64 lines
1.2 KiB
Plaintext

<demo-block title="基础用法">
<van-rate
custom-class="rate-position"
model:value="{{ value1 }}"
/>
</demo-block>
<demo-block title="自定义图标">
<van-rate
custom-class="rate-position"
icon="like"
void-icon="like-o"
model:value="{{ value2 }}"
/>
</demo-block>
<demo-block title="自定义样式">
<van-rate
custom-class="rate-position"
model:value="{{ value3 }}"
size="{{ 25 }}"
color="#ee0a24"
void-color="#eee"
void-icon="star"
/>
</demo-block>
<demo-block title="半星">
<van-rate
custom-class="rate-position"
model:value="{{ value4 }}"
size="{{ 25 }}"
allow-half
color="#ee0a24"
void-color="#eee"
void-icon="star"
touchable="{{ false }}"
/>
</demo-block>
<demo-block title="自定义数量">
<van-rate
custom-class="rate-position"
model:value="{{ value5 }}"
count="{{ 6 }}"
/>
</demo-block>
<demo-block title="禁用状态">
<van-rate
custom-class="rate-position"
value="{{ value6 }}"
disabled
/>
</demo-block>
<demo-block title="只读状态">
<van-rate
custom-class="rate-position"
value="{{ value6 }}"
readonly
/>
</demo-block>