Blame view

examples/routers/rate.vue 1.12 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="好"/>
b9ecbd53   梁灏   update Rate #3853
12
          <Rate allow-half v-model="cv" icon="ios-heart" />
77e4c204   梁灏   fixed #1761
13
14
15
16
17
          <!--<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
18
      </div>
49d380cf   梁灏   init Rate component
19
20
21
  </template>
  <script>
      export default {
49d380cf   梁灏   init Rate component
22
          data () {
962c40bd   梁灏   update Rate
23
              return {
b324bb4d   梁灏   fixed #1761
24
25
26
                  value: 0,
                  valueHalf: 2.5,
                  valueText: 3,
77e4c204   梁灏   fixed #1761
27
                  valueCustomText: 4.0,
52258982   xiaofengsha   添加tag组件allowClear...
28
29
30
                  valueDisabled: 2.4,
                  valueClear: 1,
                  valueClearHalf: 1.5,
b9ecbd53   梁灏   update Rate #3853
31
32
                  characterValue: 2.5,
                  cv: 3.5
6aa72722   huixisheng   Support rate
33
34
              }
          }
b324bb4d   梁灏   fixed #1761
35
36
      }
  </script>