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>

posted @ 2019-05-23 19:42  A影子放風箏  阅读(1306)  评论(1编辑  收藏  举报
// 侧边栏目录 // https://blog-static.cnblogs.com/files/douzujun/marvin.nav.my1502.css