Blame view

examples/routers/cascader.vue 1.15 KB
47a7f21d   梁灏   support Cascader
1
2
  <template>
      <div>
65b41a2d   梁灏   fixed #635
3
4
          <Cascader :data="data2" v-model="v1" disabled clearable></Cascader>
          <Cascader :data="data2" clearable></Cascader>
47a7f21d   梁灏   support Cascader
5
      </div>
0a48ac45   梁灏   Input add readonl...
6
7
  </template>
  <script>
0a48ac45   梁灏   Input add readonl...
8
      export default {
0a48ac45   梁灏   Input add readonl...
9
10
          data () {
              return {
65b41a2d   梁灏   fixed #635
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
                  v1: ['zhejiang', 'hangzhou', 'xihu'],
                  data2: [{
                      value: 'zhejiang',
                      label: '浙江',
                      children: [{
                          value: 'hangzhou',
                          label: '杭州',
                          children: [{
                              value: 'xihu',
                              label: '西湖'
                          }]
                      }]
                  }, {
                      value: 'jiangsu',
                      label: '江苏',
                      disabled: true,
                      children: [{
48af1359   梁灏   fixed #553
28
29
                          value: 'nanjing',
                          label: '南京',
65b41a2d   梁灏   fixed #635
30
31
32
33
34
35
36
                          children: [{
                              value: 'zhonghuamen',
                              label: '中华门'
                          }]
                      }]
                  }]
              }
0a48ac45   梁灏   Input add readonl...
37
38
          }
      }
c9433dcc   梁灏   optimize Timeline...
39
  </script>