Blame view

test/routers/rate.vue 492 Bytes
49d380cf   梁灏   init Rate component
1
2
  <template>
      <div style="margin: 100px">
962c40bd   梁灏   update Rate
3
4
5
6
7
8
          {{value}}
          <br><br><br>
          <Rate :value.sync="value" :count="5" allow-half></Rate>
          <br><br><br>
          <i-button @click="value++">add</i-button>
          <i-button @click="value--">remove</i-button>
49d380cf   梁灏   init Rate component
9
10
11
12
13
14
      </div>
  </template>
  <script>
      export default {
          props: {},
          data () {
962c40bd   梁灏   update Rate
15
16
17
              return {
                  value: 3.8
              };
49d380cf   梁灏   init Rate component
18
19
20
21
22
          },
          computed: {},
          methods: {}
      };
  </script>