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>