parent
bef01c91c1
commit
cd8f1be839
2 changed files with 18 additions and 2 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue