Blame view

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