表单是数据是这样的
Form = {
configs: {
cert: "",
key: "",
},
description: "",
};
rules这样写
rules: {
"configs.cert": [
{
required: true,
message: "",
trigger: "blur",
},
],
"configs.key": [
{
required: true,
message: "",
trigger: "blur",
},
],
},
element中这样使用
<a-form-model-item label="name" prop="configs.cert">
<a-textarea
placeholder=''
:rows="4"
v-model="form.configs.cert"
class="setWidth"
style="resize: vertical"
/>
</a-form-model-item>