Skip to content

The data structure returned by form onFinish is incorrect when the form-item name is passed into the array #3782

@lihxhit

Description

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

Version

2.0.1

Environment

vue3

Reproduction link

Steps to reproduce

a-form-item :name='["bannerInfo", "openType"]'/>

data(){
return {
formState:{
bannerInfo:{openType:1}
}
}
}

onFinish(value){
console.log(value)
}

What is expected?

// {
bannerInfo:{openType:1}
}

What is actually happening?

{
'bannerInfo,openType':1
}

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