<a-form :form="form">
<a-form-item :labelCol="labelCol"
:wrapperCol="wrapperCol"
label="适用阶段"
hasFeedback>
<a-select v-decorator="['mealCategory', {rules:[{required:true,message:'适用阶段不能为空'}]}]"
@blur="getMealCategory"
:disabled="isDisabled"
placeholder="请选择适用阶段">
<a-select-option value="小学">小学</a-select-option>
<a-select-option value="初中">初中</a-select-option>
<a-select-option value="高中">高中</a-select-option>
</a-select>
</a-form-item>
<a-form-item :labelCol="labelCol"
:wrapperCol="wrapperCol"
label="活动套餐名称"
hasFeedback>
<a-input placeholder="请输入活动套餐名称"
v-decorator="['mealName', {rules:[{required:true,message:'活动套餐名称不能为空'}]}]" />
</a-form-item>
</a-form>
原文地址:https://www.cnblogs.com/eternityz/p/12271908.html
时间: 2024-10-18 04:02:07