Commit 522589820221cbaa7a8614637c7a5619dc3770fe

Authored by xiaofengsha
1 parent 1137640c

添加tag组件allowClear属性的示例

Showing 1 changed file with 5 additions and 1 deletions   Show diff stats
examples/routers/rate.vue
... ... @@ -2,6 +2,8 @@
2 2 <div>
3 3 <Rate v-model="value"></Rate>
4 4 <Rate allow-half v-model="valueHalf"></Rate>
  5 + <Rate allow-clear v-model="valueClear"></Rate>
  6 + <Rate allow-clear allow-half v-model="valueClearHalf"></Rate>
5 7 <!--<Rate show-text v-model="valueText"></Rate>-->
6 8 <!--<Rate show-text allow-half v-model="valueCustomText">-->
7 9 <!--<span style="color: #f5a623">{{ valueCustomText }}</span>-->
... ... @@ -17,7 +19,9 @@
17 19 valueHalf: 2.5,
18 20 valueText: 3,
19 21 valueCustomText: 4.0,
20   - valueDisabled: 2.4
  22 + valueDisabled: 2.4,
  23 + valueClear: 1,
  24 + valueClearHalf: 1.5,
21 25 }
22 26 }
23 27 }
... ...