baidu / amis

前端低代码框架,通过 JSON 配置就能生成各种页面。
https://baidu.github.io/amis/
Apache License 2.0
17.4k stars 2.52k forks source link

feat: FormItem支持从类的默认属性中获取表单项的name属性,以便初始化全局状态formItem Closes #10998 #10999

Closed ranwawa closed 1 month ago

ranwawa commented 1 month ago

Closes #10998

github-actions[bot] commented 1 month ago

👍 Thanks for this! 🏷 I have applied any labels matching special text in your issue.

Please review the labels and make any necessary changes.

ranwawa commented 1 month ago

你的邮件我已收到,查收后会尽快回复!:)

2betop commented 1 month ago

要不试试 this.props.name?

ranwawa commented 1 month ago

要不试试 this.props.name?

尝试了下,在构造函数中无法获取默认的props.name