Blame view

examples/routers/radio.vue 1.74 KB
7fa943eb   梁灏   init
1
2
  <template>
      <div>
4d545420   梁灏   Radio add size prop
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
          <Radio size="large" v-model="single">Radio</Radio>
          <Radio size="default" v-model="single">Radio</Radio>
          <Radio size="small" v-model="single">Radio</Radio>
          <br><br>
          <Radio-group v-model="phone">
              <Radio label="apple">
                  <Icon type="social-apple"></Icon>
                  <span>Apple</span>
              </Radio>
              <Radio label="android">
                  <Icon type="social-android"></Icon>
                  <span>Android</span>
              </Radio>
              <Radio label="windows">
                  <Icon type="social-windows"></Icon>
                  <span>Windows</span>
              </Radio>
          </Radio-group>
          <Radio-group v-model="button2" type="button" size="large">
              <Radio label="北京"></Radio>
              <Radio label="上海" disabled></Radio>
              <Radio label="深圳"></Radio>
              <Radio label="杭州"></Radio>
          </Radio-group>
          <Radio-group v-model="button2" type="button" size="default">
              <Radio label="北京"></Radio>
              <Radio label="上海" disabled></Radio>
              <Radio label="深圳"></Radio>
              <Radio label="杭州"></Radio>
          </Radio-group>
          <Radio-group v-model="button2" type="button" size="small">
              <Radio label="北京"></Radio>
              <Radio label="上海" disabled></Radio>
              <Radio label="深圳"></Radio>
              <Radio label="杭州"></Radio>
7d7221ec   梁灏   optimize Radio si...
38
          </Radio-group>
7fa943eb   梁灏   init
39
      </div>
7fa943eb   梁灏   init
40
41
  </template>
  <script>
7fa943eb   梁灏   init
42
      export default {
7fa943eb   梁灏   init
43
44
          data () {
              return {
4d545420   梁灏   Radio add size prop
45
                  single: true,
36d24701   Graham Fairweather   Radio w3c keyboar...
46
                  phone: '',
4d545420   梁灏   Radio add size prop
47
                  button2: '北京',
36d24701   Graham Fairweather   Radio w3c keyboar...
48
              };
d270488b   梁灏   update readme
49
50
          },
          methods: {
4d545420   梁灏   Radio add size prop
51
  
7fa943eb   梁灏   init
52
53
          }
      }
e1134de2   jingsam   not bundle vue in...
54
  </script>