其他分享
首页 > 其他分享> > vue多选验证

vue多选验证

作者:互联网

vue select 多选 验证
<FormItem :prop="'formList.'+index+'.name'" label="姓名"
:rules="{ required: true, type: 'array', min: 1, message: '输入框不能为空',trigger: 'change' }">
<Select class="formItem" :size="size" :label-in-value="true" multiple v-model="item.name" >
<Option v-for="ite in item.names" :key="ite.personId" :value="ite.personId">{{ite.employeeName}}</Option>
</Select>
</FormItem>

标签:vue,多选,验证,rules,ite,type
来源: https://www.cnblogs.com/sx00/p/10914044.html