Blame view

examples/routers/rate.vue 520 Bytes
49d380cf   梁灏   init Rate component
1
  <template>
e2c6ff2b   梁灏   update Rate
2
3
4
5
6
7
8
      <div>
          <Rate v-model="v1" allow-half show-text disabled>
              <span style="color: #f5a623">{{ v1 }}</span>
          </Rate>
          {{ v1 }}
          <div @click="v1 = 3">change v1</div>
      </div>
49d380cf   梁灏   init Rate component
9
10
11
12
13
  </template>
  <script>
      export default {
          props: {},
          data () {
962c40bd   梁灏   update Rate
14
              return {
e2c6ff2b   梁灏   update Rate
15
                  v1: 2
962c40bd   梁灏   update Rate
16
              };
49d380cf   梁灏   init Rate component
17
18
          },
          computed: {},
6aa72722   huixisheng   Support rate
19
20
21
22
23
          methods: {
              changeValue (val) {
                  console.log(val);
              }
          }
49d380cf   梁灏   init Rate component
24
25
      };
  </script>