Skip to content

Why FormItem.jsx resetField method reset value to [initalValue] when value type isArray?  #3709

@scplay

Description

@scplay

prop.o[prop.k] = [].concat(this.initialValue);

请问为什么 FormItem.jsx resetField 重置值会判断当前属性的类型为数组就重置成 [this.initalValue],而不是直接重置成 this.initalValue

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions