【发布时间】:2018-11-27 14:15:38
【问题描述】:
浏览 vee-validates 文档,我没有看到任何用于验证选择输入的内容。所以我的问题是你能验证选择吗?目前我尝试的没有显示错误消息...
这里是代码
<select id="category" v-model="client.category" name="Category Type" v-validate="'required'">
<option disabled>{{option}}</option>
<option v-for="category in categories" :key="category.id" :value="category">{{ category }}</option>
</select>
<spanv-show="errors.has('Category Type')">{{ errors.first('Category Type') }}</span>
【问题讨论】:
标签: vue.js vee-validate