如何使用vee-validate对<q-select>进行验证?

时间:2017-10-23 14:18:38

标签: vuejs2 quasar-framework vee-validate

以下是我想检查验证的示例(至少选择一个选项)。

<q-select
      multiple
      inverted
      color="dark"
      stack-label="Roles"
      separator
      v-model="multipleSelect"
      :options="options1"
      v-validate="'required|in:x-builder,rt-builder,commune,matrix,blade-runner,optocoupler,admin'"
      />
<div class="containerError">   <i v-show="errors.has('role')" class="fa fa-warning"></i>
      <span v-show="errors.has('role')" class="text-negative text-right">{{ errors.first('role') }}</span>
</div>

0 个答案:

没有答案