PC端管理项目中支持多选和单选的下拉框写法区别
作者:互联网
只能单选的下拉框:
<div class="item carPlate">
<div class="label">车牌:</div>
<Select v-model="params.carIds" filterable :max-tag-count="1">
<Option v-for="item in carList" :value="item.id" :key="item.id">
{{ item.licensePlateNumber }}
</Option>
</Select>
</div>
<div class="item carPlate">
<div class="label">车牌:</div>
<Select v-model="params.carIds" filterable multiple :max-tag-count="1">
<Option v-for="item in carList" :value="`${item.id}`" :key="item.id">
{{ item.licensePlateNumber }}
</Option>
</Select>
</div>
标签:多选,item,接口,PC,单选,数组,下拉框 来源: https://www.cnblogs.com/abai-Blog/p/16187406.html