iview/examples/routers/select.vue

49 lines
1.7 KiB
Vue
Raw Normal View History

<template>
2018-12-24 15:12:28 +08:00
<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>
2018-07-02 11:02:06 +08:00
</Select>
2018-12-24 15:12:28 +08:00
<Select v-model="model10" multiple style="width:260px">
<Option v-for="item in cityList" :value="item.value" :key="item.value">{{ item.label }}</Option>
2018-07-02 11:02:06 +08:00
</Select>
2018-12-24 15:12:28 +08:00
<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>
</template>
<script>
2018-06-28 11:48:30 +08:00
export default {
data () {
return {
2018-12-24 15:12:28 +08:00
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']
2018-09-25 15:04:56 +08:00
}
2018-06-28 11:48:30 +08:00
}
}
2017-09-14 15:49:37 +08:00
</script>