radio默认选中:

<span v-for="(item,index) in refArray">
	<input type="radio" name="inspectionRef" v-bind:value="item.id" v-model="defaultInspectionRef" class="radio"/>{{item.name}}
</span>
self.defaultInspectionRef = 默认选中的value;

select默认选中:

<select @change="onChange($event)" style="width:100px;max-width:100px;" v-model="id">
	<option v-for="(item,index) in list" :value="item.userId">{{item.name}}</option>
</select>
self.id = 默认选中的value;
Logo

前往低代码交流专区

更多推荐