Blame view

examples/routers/rate.vue 1.04 KB
49d380cf   梁灏   init Rate component
1
  <template>
e2c6ff2b   梁灏   update Rate
2
      <div>
b324bb4d   梁灏   fixed #1761
3
4
          <Rate v-model="value"></Rate>
          <Rate allow-half v-model="valueHalf"></Rate>
8e99f189   Aresn   Update rate.vue
5
6
          <Rate clearable v-model="valueClear"></Rate>
          <Rate clearable allow-half  v-model="valueClearHalf"></Rate>
552408d5   wqzwh   feature: rate组件增加...
7
8
9
10
11
          <Rate 
              allow-half 
              show-text
              v-model="characterValue"
              character="好"/>
77e4c204   梁灏   fixed #1761
12
13
14
15
16
          <!--<Rate show-text v-model="valueText"></Rate>-->
          <!--<Rate show-text allow-half v-model="valueCustomText">-->
              <!--<span style="color: #f5a623">{{ valueCustomText }}</span>-->
          <!--</Rate>-->
          <!--<Rate disabled  allow-half v-model="valueDisabled"></Rate>-->
e2c6ff2b   梁灏   update Rate
17
      </div>
49d380cf   梁灏   init Rate component
18
19
20
  </template>
  <script>
      export default {
49d380cf   梁灏   init Rate component
21
          data () {
962c40bd   梁灏   update Rate
22
              return {
b324bb4d   梁灏   fixed #1761
23
24
25
                  value: 0,
                  valueHalf: 2.5,
                  valueText: 3,
77e4c204   梁灏   fixed #1761
26
                  valueCustomText: 4.0,
52258982   xiaofengsha   添加tag组件allowClear...
27
28
29
                  valueDisabled: 2.4,
                  valueClear: 1,
                  valueClearHalf: 1.5,
552408d5   wqzwh   feature: rate组件增加...
30
                  characterValue: 2.5
6aa72722   huixisheng   Support rate
31
32
              }
          }
b324bb4d   梁灏   fixed #1761
33
34
      }
  </script>