This commit is contained in:
任珽 2018-09-25 15:04:56 +08:00
parent bef01c91c1
commit cd8f1be839
2 changed files with 18 additions and 2 deletions

View file

@ -7,6 +7,8 @@
<Select v-model="model2" multiple style="width:200px">
<Option v-for="item in cityList" :value="item.value" :key="item.value">{{ item.label }}</Option>
</Select>
<Button type="primary" @click="changeData">changeData</Button>
</div>
</template>
<script>
@ -42,6 +44,11 @@
model1: '',
model2: []
}
},
methods: {
changeData() {
this.model2.push('Canberra')
}
}
}
</script>