2019-08-27 09:42:40 +08:00
|
|
|
<template>
|
|
|
|
<div style="margin: 100px;">
|
2019-09-11 14:27:19 +08:00
|
|
|
<Select v-model="model1" filterable style="width:200px" prefix="ios-albums">
|
|
|
|
<Option v-for="item in cityList" :value="item.value" :key="item.value">{{ item.label }}</Option>
|
|
|
|
</Select>
|
2019-08-27 09:42:40 +08:00
|
|
|
|
2019-09-11 14:27:19 +08:00
|
|
|
<Select v-model="model10" filterable :max-tag-count="2" multiple style="width:400px">
|
|
|
|
<Option v-for="item in cityList" :value="item.value" :key="item.value">{{ item.label }}</Option>
|
|
|
|
</Select>
|
2019-08-27 09:42:40 +08:00
|
|
|
|
2019-09-11 14:27:19 +08:00
|
|
|
<Select v-model="model10" filterable :max-tag-count="2" multiple style="width:400px" prefix="ios-albums">
|
|
|
|
<Option v-for="item in cityList" :value="item.value" :key="item.value">{{ item.label }}</Option>
|
|
|
|
</Select>
|
2019-08-27 09:42:40 +08:00
|
|
|
|
2019-09-11 14:27:19 +08:00
|
|
|
<br><br>
|
2019-08-27 09:42:40 +08:00
|
|
|
|
2019-09-11 14:27:19 +08:00
|
|
|
<Select v-model="model1" style="width:200px">
|
|
|
|
<Icon type="ios-alarm" slot="prefix" color="red" />
|
|
|
|
<Option v-for="item in cityList" :value="item.value" :key="item.value">{{ item.label }}</Option>
|
|
|
|
</Select>
|
2019-08-27 09:42:40 +08:00
|
|
|
|
2019-09-11 14:27:19 +08:00
|
|
|
<Select v-model="model1" style="width:200px">
|
|
|
|
<Avatar src="https://dev-file.iviewui.com/userinfoPDvn9gKWYihR24SpgC319vXY8qniCqj4/avatar" slot="prefix" size="small" />
|
|
|
|
<Option v-for="item in cityList" :value="item.value" :key="item.value">{{ item.label }}</Option>
|
|
|
|
</Select>
|
2019-08-27 09:42:40 +08:00
|
|
|
|
2019-09-11 14:27:19 +08:00
|
|
|
<Select v-model="model10" :max-tag-count="3" :max-tag-placeholder="more" multiple style="width:400px" prefix="ios-albums">
|
|
|
|
<Option v-for="item in cityList" :value="item.value" :key="item.value">{{ item.label }}</Option>
|
|
|
|
</Select>
|
2019-08-27 09:42:40 +08:00
|
|
|
|
2019-09-11 14:27:19 +08:00
|
|
|
<br><br>
|
2019-08-27 09:42:40 +08:00
|
|
|
|
2019-09-11 14:27:19 +08:00
|
|
|
<Select size="small" v-model="model1" style="width:200px" prefix="ios-albums">
|
|
|
|
<Option v-for="item in cityList" :value="item.value" :key="item.value">{{ item.label }}</Option>
|
|
|
|
</Select>
|
2019-08-27 09:42:40 +08:00
|
|
|
|
2019-09-11 14:27:19 +08:00
|
|
|
<Select size="small" v-model="model10" multiple style="width:400px" prefix="ios-albums">
|
|
|
|
<Option v-for="item in cityList" :value="item.value" :key="item.value">{{ item.label }}</Option>
|
|
|
|
</Select>
|
2019-08-27 09:42:40 +08:00
|
|
|
|
2019-09-11 14:27:19 +08:00
|
|
|
<br><br>
|
2019-08-27 09:42:40 +08:00
|
|
|
|
2019-09-11 14:27:19 +08:00
|
|
|
<Select size="large" v-model="model1" style="width:200px" prefix="ios-albums">
|
|
|
|
<Option v-for="item in cityList" :value="item.value" :key="item.value">{{ item.label }}</Option>
|
|
|
|
</Select>
|
2019-08-27 09:42:40 +08:00
|
|
|
|
2019-09-11 14:27:19 +08:00
|
|
|
<Select size="large" v-model="model10" multiple style="width:400px" prefix="ios-albums">
|
|
|
|
<Option v-for="item in cityList" :value="item.value" :key="item.value">{{ item.label }}</Option>
|
|
|
|
</Select>
|
2019-09-09 13:45:01 +08:00
|
|
|
<Divider></Divider>
|
|
|
|
<Select v-model="model13" filterable allow-create @on-create="handleCreate" style="width:260px">
|
2019-08-27 09:42:40 +08:00
|
|
|
<Option v-for="item in cityList" :value="item.value" :key="item.value">{{ item.label }}</Option>
|
|
|
|
</Select>
|
2019-09-09 14:41:42 +08:00
|
|
|
<Select v-model="model12" multiple filterable allow-create @on-create="handleCreate" style="width:260px">
|
|
|
|
<Option v-for="item in cityList" :value="item.value" :key="item.value">{{ item.label }}</Option>
|
|
|
|
</Select>
|
2019-09-14 17:49:56 +08:00
|
|
|
<Divider></Divider>
|
|
|
|
<Select v-model="model31" size="small" style="width:200px">
|
|
|
|
<Option v-for="item in cityList" :value="item.value" :key="item.value">{{ item.label }}</Option>
|
|
|
|
</Select>
|
|
|
|
<Select v-model="model31" style="width:200px">
|
|
|
|
<Option v-for="item in cityList" :value="item.value" :key="item.value">{{ item.label }}</Option>
|
|
|
|
</Select>
|
|
|
|
<Select v-model="model31" size="large" style="width:200px">
|
|
|
|
<Option v-for="item in cityList" :value="item.value" :key="item.value">{{ item.label }}</Option>
|
|
|
|
</Select>
|
|
|
|
<Divider></Divider>
|
2019-09-14 18:12:52 +08:00
|
|
|
<Select v-model="model31" filterable size="small" style="width:200px">
|
|
|
|
<Option v-for="item in cityList" :value="item.value" :key="item.value">{{ item.label }}</Option>
|
|
|
|
</Select>
|
|
|
|
<Select v-model="model31" filterable style="width:200px">
|
|
|
|
<Option v-for="item in cityList" :value="item.value" :key="item.value">{{ item.label }}</Option>
|
|
|
|
</Select>
|
|
|
|
<Select v-model="model31" filterable size="large" style="width:200px">
|
|
|
|
<Option v-for="item in cityList" :value="item.value" :key="item.value">{{ item.label }}</Option>
|
|
|
|
</Select>
|
|
|
|
<Divider></Divider>
|
2019-09-14 17:49:56 +08:00
|
|
|
<Select v-model="model34" multiple size="small" style="width:200px">
|
|
|
|
<Option v-for="item in cityList" :value="item.value" :key="item.value">{{ item.label }}</Option>
|
|
|
|
</Select>
|
|
|
|
<Select v-model="model34" multiple style="width:200px">
|
|
|
|
<Option v-for="item in cityList" :value="item.value" :key="item.value">{{ item.label }}</Option>
|
|
|
|
</Select>
|
|
|
|
<Select v-model="model34" multiple size="large" style="width:200px">
|
|
|
|
<Option v-for="item in cityList" :value="item.value" :key="item.value">{{ item.label }}</Option>
|
|
|
|
</Select>
|
2019-09-14 18:12:52 +08:00
|
|
|
<Divider></Divider>
|
|
|
|
<Select v-model="model34" filterable multiple size="small" style="width:200px">
|
|
|
|
<Option v-for="item in cityList" :value="item.value" :key="item.value">{{ item.label }}</Option>
|
|
|
|
</Select>
|
|
|
|
<Select v-model="model34" filterable multiple style="width:200px">
|
|
|
|
<Option v-for="item in cityList" :value="item.value" :key="item.value">{{ item.label }}</Option>
|
|
|
|
</Select>
|
2019-09-14 18:26:37 +08:00
|
|
|
<Select v-model="model34" filterable allow-create multiple size="large" style="width:200px">
|
2019-09-14 18:12:52 +08:00
|
|
|
<Option v-for="item in cityList" :value="item.value" :key="item.value">{{ item.label }}</Option>
|
|
|
|
</Select>
|
2019-08-27 09:42:40 +08:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
data () {
|
|
|
|
return {
|
|
|
|
cityList: [
|
|
|
|
{
|
|
|
|
value: 'New York',
|
|
|
|
label: 'New York'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: 'London',
|
2019-09-09 14:41:42 +08:00
|
|
|
label: 'London'
|
2019-08-27 09:42:40 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
value: 'Sydney',
|
|
|
|
label: 'Sydney'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: 'Ottawa',
|
|
|
|
label: 'Ottawa'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: 'Paris',
|
|
|
|
label: 'Paris'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: 'Canberra',
|
|
|
|
label: 'Canberra'
|
|
|
|
}
|
|
|
|
],
|
|
|
|
model1: '',
|
2019-09-09 13:45:01 +08:00
|
|
|
model10: [],
|
|
|
|
model12: [],
|
2019-09-14 17:49:56 +08:00
|
|
|
model13: '',
|
|
|
|
model31: '',
|
|
|
|
model32: '',
|
|
|
|
model33: '',
|
|
|
|
model34: [],
|
|
|
|
model35: [],
|
|
|
|
model36: []
|
2019-08-27 09:42:40 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
more (num) {
|
|
|
|
return 'more' + num;
|
2019-09-09 13:45:01 +08:00
|
|
|
},
|
|
|
|
handleCreate (val) {
|
|
|
|
console.log(111,val);
|
|
|
|
this.cityList.push({
|
|
|
|
value: val,
|
|
|
|
label: val
|
|
|
|
});
|
2019-08-27 09:42:40 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|