案例
解决方案
- a-form标签上有:model="formState"
- a-form-item中的name值和v-model:value对应值保持一致
案例
<a-form :label-col="labelCol" :wrapper-col="wrapperCol" ref="formRef" :model="formState">
<a-form-item label="XX标题" name="combatTitle" :rules="[{ required: true, message: '请XX原因' }]">
<a-input
v-model:value="formState.combatTitle"
allowClear
placeholder="请输入"
/>
</a-form-item>
</a-form>
标签:有值,form,表单,AntDesign,model,Form
From: https://www.cnblogs.com/openmind-ink/p/17399935.html