<uni-forms-item :label="item.name"
:name="['userFormItem', index, 'content']"
:required="isRequired(item.options)"
:rules="[
{ required: isRequired(item.options), errorMessage: `${item.name}为必填项`}
]">
<uni-easyinput type="text" v-model="formItemOptionDTO.userFormItem[index].content" />
</uni-forms-item>
表单的每一项都是动态创建的,点击提交校验时校验也执行了,但是已经填写的也说没填,不知道什么问题
WE丕样 (作者)
没事了,已经解决了,谢谢回复
2023-03-12 10:51
7***@qq.com
v-model="formData[item.key]"
></uni-easyinput> -->
</uni-forms-item>
2024-05-23 11:25