Blame view

test/routers/select.vue 1.52 KB
e355dd49   梁灏   add Select Component
1
  <template>
2f0b086d   梁灏   fixed #116
2
3
      <Row>
          <i-col span="12" style="padding-right:10px">
e2006187   梁灏   fixed #159
4
              <i-select :model.sync="model11" filterable>
1363abdc   Rijn   fixed #178
5
                  <i-option v-for="item in cityList" :value="item.value" :label="item.label"><span>{{ item.label }}</span><span>{{ item.des }}</span></i-option>
2f0b086d   梁灏   fixed #116
6
7
8
9
              </i-select>
          </i-col>
          <i-col span="12">
              <i-select :model.sync="model12" filterable multiple>
1363abdc   Rijn   fixed #178
10
                  <i-option v-for="item in cityList" :value="item.value" :label="item.label"><span>{{ item.label }}</span><span>{{ item.des }}</span></i-option>
2f0b086d   梁灏   fixed #116
11
12
13
              </i-select>
          </i-col>
      </Row>
e355dd49   梁灏   add Select Component
14
15
  </template>
  <script>
e355dd49   梁灏   add Select Component
16
      export default {
e355dd49   梁灏   add Select Component
17
18
          data () {
              return {
3e855e34   梁灏   fixed #46
19
20
21
                  cityList: [
                      {
                          value: 'beijing',
1363abdc   Rijn   fixed #178
22
23
                          label: '北京市',
                          des: '帝都'
3e855e34   梁灏   fixed #46
24
25
26
                      },
                      {
                          value: 'shanghai',
1363abdc   Rijn   fixed #178
27
28
                          label: '上海市',
                          des: '魔都'
3e855e34   梁灏   fixed #46
29
30
31
                      },
                      {
                          value: 'shenzhen',
1363abdc   Rijn   fixed #178
32
33
                          label: '深圳市',
                          des: '渔村'
0f4ccf44   梁灏   release 0.9.9
34
35
36
                      },
                      {
                          value: 'chongqing',
1363abdc   Rijn   fixed #178
37
38
                          label: '重庆市',
                          des: '山城'
0f4ccf44   梁灏   release 0.9.9
39
                      }
3e855e34   梁灏   fixed #46
40
                  ],
1363abdc   Rijn   fixed #178
41
                  model11: '',
e2006187   梁灏   fixed #159
42
                  model12: ['beijing', 'shanghai']
e355dd49   梁灏   add Select Component
43
44
45
              }
          }
      }
3e855e34   梁灏   fixed #46
46
  </script>