Blame view

examples/routers/rate.vue 707 Bytes
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>
77e4c204   梁灏   fixed #1761
5
6
7
8
9
          <!--<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
10
      </div>
49d380cf   梁灏   init Rate component
11
12
13
  </template>
  <script>
      export default {
49d380cf   梁灏   init Rate component
14
          data () {
962c40bd   梁灏   update Rate
15
              return {
b324bb4d   梁灏   fixed #1761
16
17
18
                  value: 0,
                  valueHalf: 2.5,
                  valueText: 3,
77e4c204   梁灏   fixed #1761
19
                  valueCustomText: 4.0,
b324bb4d   梁灏   fixed #1761
20
                  valueDisabled: 2.4
6aa72722   huixisheng   Support rate
21
22
              }
          }
b324bb4d   梁灏   fixed #1761
23
24
      }
  </script>