Blame view

examples/routers/radio.vue 549 Bytes
7fa943eb   梁灏   init
1
2
  <template>
      <div>
d270488b   梁灏   update readme
3
4
5
          <Radio-group v-model="date.sex">
              <Radio label="male form"></Radio>
              <Radio label="female"></Radio>
7d7221ec   梁灏   optimize Radio si...
6
          </Radio-group>
d270488b   梁灏   update readme
7
          <Button @click="handleChange">change</Button>
7fa943eb   梁灏   init
8
      </div>
7fa943eb   梁灏   init
9
10
  </template>
  <script>
7fa943eb   梁灏   init
11
      export default {
7fa943eb   梁灏   init
12
13
          data () {
              return {
d270488b   梁灏   update readme
14
15
16
17
18
19
20
21
                  date: {
                      sex: ''
                  }
              }
          },
          methods: {
              handleChange () {
                  this.date.sex = 'male form';
7fa943eb   梁灏   init
22
              }
7fa943eb   梁灏   init
23
24
          }
      }
e1134de2   jingsam   not bundle vue in...
25
  </script>