This commit is contained in:
parent
cc41949990
commit
f7674b5b74
2 changed files with 20 additions and 50 deletions
|
@ -193,62 +193,31 @@
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<Row>
|
<i-select v-model="d" filterable style="width: 200px" multiple>
|
||||||
<i-col span="12" style="padding-right:10px">
|
<i-option v-for="e in uList" :value="e.id" :label="e.name">
|
||||||
<Select v-model="model11" filterable>
|
<span>{{ e.name }}</span>
|
||||||
<Option-group label="123">
|
<span style="float:right;color:#ccc">{{ e.id }}</span>
|
||||||
<i-option value="beijing">北京市</i-option>
|
</i-option>
|
||||||
<i-option value="shanghai">上海市</i-option>
|
</i-select>
|
||||||
</Option-group>
|
<p>{{d}}</p>
|
||||||
<Option-group label="456">
|
<i-button type="primary" v-on:click="clear">清空</i-button>
|
||||||
<i-option value="shenzhen">深圳市</i-option>
|
|
||||||
<i-option value="hangzhou">杭州市</i-option>
|
|
||||||
</Option-group>
|
|
||||||
<i-option value="nanjing">南京市</i-option>
|
|
||||||
<i-option value="chongqing">重庆市</i-option>
|
|
||||||
</Select>
|
|
||||||
</i-col>
|
|
||||||
<i-col span="12">
|
|
||||||
<Select v-model="model12" filterable multiple>
|
|
||||||
<i-option v-for="item in cityList" :key="item" :value="item.value">{{ item.label }}</i-option>
|
|
||||||
</Select>
|
|
||||||
</i-col>
|
|
||||||
</Row>
|
|
||||||
<div @click="model11 = 'shanghai'">change</div>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
cityList: [
|
d: [],
|
||||||
{
|
uList : [
|
||||||
value: 'beijing',
|
{id:1,name:"中国"},
|
||||||
label: '北京市'
|
{id:2,name:"美国"},
|
||||||
},
|
{id:3,name:"韩国"}
|
||||||
{
|
]
|
||||||
value: 'shanghai',
|
|
||||||
label: '上海市'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
value: 'shenzhen',
|
|
||||||
label: '深圳市'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
value: 'hangzhou',
|
|
||||||
label: '杭州市'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
value: 'nanjing',
|
|
||||||
label: '南京市'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
value: 'chongqing',
|
|
||||||
label: '重庆市'
|
|
||||||
}
|
}
|
||||||
],
|
},
|
||||||
model11: '',
|
methods: {
|
||||||
model12: []
|
clear(){
|
||||||
|
this.d = [];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -563,6 +563,7 @@
|
||||||
watch: {
|
watch: {
|
||||||
value (val) {
|
value (val) {
|
||||||
this.model = val;
|
this.model = val;
|
||||||
|
if (val === '') this.query = '';
|
||||||
},
|
},
|
||||||
model () {
|
model () {
|
||||||
this.$emit('input', this.model);
|
this.$emit('input', this.model);
|
||||||
|
|
Loading…
Add table
Reference in a new issue