Skip to content

The wrapper-col setting of the form component in the form-item component is invalid #4074

@allen0815

Description

@allen0815
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

1.7.4

Steps to reproduce

我读了源码。
form组件的this.isFormItemChildren在这种情况下为true,导致renderWrapper函数的contextWrapperCol为{},而非this.FormContext。

form-item > form > form-item
就会产生这样的问题。

应该在form的provide加入isFormItemChildren: false,来解决此bug。

What is expected?

form-item组件里的form组件设置wrapper-col生效

What is actually happening?

form-item组件里的form组件设置wrapper-col无效

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions