Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛[BUG] 仅设置initialValue ,提交时transform 无效 #8910

Open
qq329401134 opened this issue Dec 8, 2024 · 1 comment
Open

🐛[BUG] 仅设置initialValue ,提交时transform 无效 #8910

qq329401134 opened this issue Dec 8, 2024 · 1 comment

Comments

@qq329401134
Copy link

🐛 bug 描述
组件有initialValue 和 transform ,直接点击提交,数据并没有转换

📷 复现步骤
直接点击提交
https://codesandbox.io/p/sandbox/ji-ben-shi-yong-forked-zccymh

🏞 期望结果
期望点击提交,打印的是1111而不是object

💻 复现代码
© 版本信息
{
"name": "基本使用",
"description": "An auto-generated demo by dumi",
"main": "index.tsx",
"dependencies": {
"@ant-design/pro-components": "2.7.16",
"antd": "5.20.0",
"dayjs": "1.11.12",
"react": "18.3.1",
"react-dom": "18.3.1"
},
"devDependencies": {
"typescript": "^4"
}
}

🚑 其他信息
为什么不是1111而是似乎没经过transform转换的object
image

Copy link

github-actions bot commented Dec 8, 2024

以下的 Issues 可能会帮助到你 / The following issues may help you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant