我有办法检查v-select
输入的值吗?
这是我的代码:
验证规则
item_classification_id:[
v => v.value == -1 || 'Classification is required'
]
验证v-select
<v-select
:rules="itemRules.item_classification_id"
v-model="item.item_classification_id"
:items="itemClassifications"
label="Classification"
item-text="name"
item-value="id"
></v-select>