StepsForm 搭配 antd Form.List 和 Tabs 时 ProFormDateTimeRangePicker 的 transform 无法触发 🐛[BUG]
yanglvyou opened this issue · comments
提问前先看看:
https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md
🐛 bug 描述
如题
📷 复现步骤
![image](https://private-user-images.githubusercontent.com/40206669/337834363-bd3eec9d-d2a3-4401-94f7-861bbcc16a15.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ1MjkyOTMsIm5iZiI6MTcyNDUyODk5MywicGF0aCI6Ii80MDIwNjY2OS8zMzc4MzQzNjMtYmQzZWVjOWQtZDJhMy00NDAxLTk0ZjctODYxYmJjYzE2YTE1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODI0VDE5NDk1M1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWM1NWQyMmY2YTA4NTE1NDI3ZGRlZjkwODA3MTZlYmQxNGQ4NDJkNmVmOTY0NWZjNWFhOWVmNWM4NjQ3MTRmODAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.wLBQ6Y7_Ze0ICJod4eo3xEcLYMGSj9t37IjnAiiezq4)
🏞 期望结果
SmsSystemForm ProFormDateTimeRangePicker transform 方法能够触发
💻 复现代码
© 版本信息
- ProComponents 版本: [2.7.9]
- antd 版本:[5.18.0]
- 浏览器环境 Chrome 125.0.6422.113(正式版本) (arm64)
- 开发环境 [mac OS]
🚑 其他信息
碰到了同样的问题,我的场景是StepsForm
- ProFormList
- ProFormList
嵌套,最里层的ProFormList
中的transform
无法触发
@chenshuai2144 有时间看一下吗?
确定是这块代码问题,如果注释掉这块代码,ProFormList
的子表单控件的transform
就能被正常调用,
pro-components/packages/form/src/components/List/index.tsx
Lines 214 to 229 in 8250bd1
@chenshuai2144 有时间看一下,水平有限,实在是不知道怎么修