<select name="" id="" v-model="selected" @change="changeIndex(indexs)">
<option v-for="(item, index) in lists" :key="index" :value="getText(item,index)" :indexs="index">{{item.name}}</option>
</select>
<div>Select: {{selected.name}}</div>
data里面的内容:
最重要的一句话:
created() {
this.selected = this.lists[0].name;
}