Blame view

examples/routers/select.vue 1.69 KB
e355dd49   梁灏   add Select Component
1
  <template>
2dc68882   梁灏   fix #4938
2
3
4
      <div style="margin: 200px;">
          <Select size="small" v-model="model10" multiple style="width:260px">
              <Option v-for="item in cityList" :value="item.value" :key="item.value">{{ item.label }}</Option>
b12fa396   梁灏   update Select
5
          </Select>
2dc68882   梁灏   fix #4938
6
7
          <Select v-model="model10" multiple style="width:260px">
              <Option v-for="item in cityList" :value="item.value" :key="item.value">{{ item.label }}</Option>
b12fa396   梁灏   update Select
8
          </Select>
2dc68882   梁灏   fix #4938
9
10
11
12
          <Select size="large" v-model="model10" multiple style="width:260px">
              <Option v-for="item in cityList" :value="item.value" :key="item.value">{{ item.label }}</Option>
          </Select>
      </div>
e355dd49   梁灏   add Select Component
13
  </template>
e355dd49   梁灏   add Select Component
14
  <script>
517917a2   梁灏   add global settin...
15
16
17
      export default {
          data () {
              return {
2dc68882   梁灏   fix #4938
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
                  cityList: [
                      {
                          value: 'New York',
                          label: 'New York'
                      },
                      {
                          value: 'London',
                          label: 'LondonLondonLondonLondonLondonLondonLondonLondonLondonLondonLondonLondonLondonLondonLondonLondonLondonLondon'
                      },
                      {
                          value: 'Sydney',
                          label: 'Sydney'
                      },
                      {
                          value: 'Ottawa',
                          label: 'Ottawa'
                      },
                      {
                          value: 'Paris',
                          label: 'Paris'
                      },
                      {
                          value: 'Canberra',
                          label: 'Canberra'
                      }
                  ],
                  model10: ['New York', 'London']
cd8f1be8   任珽   fixed bug #4466 #...
45
              }
517917a2   梁灏   add global settin...
46
47
          }
      }
e1b86bcf   梁灏   fixed #1865
48
  </script>