iview/examples/routers/notice.vue

41 lines
1.1 KiB
Vue
Raw Normal View History

<template>
2018-07-14 18:31:22 +08:00
<Select v-model="model1" style="width:200px">
<Option v-for="item in cityList" :value="item.value" :key="item.value">{{ item.label }}</Option>
</Select>
</template>
<script>
export default {
2018-07-14 18:31:22 +08:00
data () {
return {
cityList: [
{
value: 'New York',
label: 'New York'
2017-12-21 16:42:23 +08:00
},
2018-07-14 18:31:22 +08:00
{
value: 'London',
label: 'London'
},
2018-07-14 18:31:22 +08:00
{
value: 'Sydney',
label: 'Sydney'
},
{
value: 'Ottawa',
label: 'Ottawa'
},
{
value: 'Paris',
label: 'Paris'
},
{
value: 'Canberra',
label: 'Canberra'
}
],
model1: 'Sydney'
}
}
}
</script>