Bootstrap

ant-design-vue 中 a-form-modal 中 form 数据为嵌套形式时验证该怎样写

表单是数据是这样的

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>
;