element ui之el-select使用

v-model绑定的值与option选项value值对应,

label值为显示的标签

<el-select v-model="updatelist.diseCategoryId" placeholder="请选择" >
	<el-option v-for="item in options"   :key="item.value"  :label="item.label" :value="item.value">
		<span style="float: left">{
   
   { item.label }}</span>
		 <span style="float: right; color: #8492a6; font-size: 13px">{
   
   { item.value }}</span>
	</el-option>
</el-select>

猜你喜欢

转载自blog.csdn.net/weixin_46267445/article/details/120208169