We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
1.5.3
https://codesandbox.io/p/sandbox/formitem-khwfg8
** 源码捞出来在本地测试的结果:**
最简单的案例
不要影响用户的原始表单状态
实际结果是用户状态被覆盖了
No response
解决办法已经贴图里了,亲测有效~
The text was updated successfully, but these errors were encountered:
👋 @broxiang,感谢给 TDesign 提出了 issue。 请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。
Sorry, something went wrong.
@broxiang 地址:https://tdesign.tencent.com/react/components/form?tab=demo#faq
@HaixingOoO 这种办法虽然是能解决一部分问题,但是感觉这种设计略微不太合理,用initialData貌似解决不了一个FormItem中包裹多个Input的场景(每个Input的初始值不同),包括文档下面提到的只想用Form来布局的场景,也必须要在内部套一层div,不然也没办法达到纯净的布局作用,这个设计有些侵入业务,略微超出了UI组件的职责范畴(假设是存量系统做迁移,这种也是一种阻力),是否可以考虑增加一个控制属性来关掉这个特性呢~
@broxiang 我们讨论一下,感谢!!!
No branches or pull requests
tdesign-react 版本
1.5.3
重现链接
https://codesandbox.io/p/sandbox/formitem-khwfg8
重现步骤
** 源码捞出来在本地测试的结果:**
![image](https://private-user-images.githubusercontent.com/96121127/313405376-0e4135e1-f677-4982-9d10-6ef6c09e40a2.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM4OTYwMzEsIm5iZiI6MTcyMzg5NTczMSwicGF0aCI6Ii85NjEyMTEyNy8zMTM0MDUzNzYtMGU0MTM1ZTEtZjY3Ny00OTgyLTlkMTAtNmVmNmMwOWU0MGEyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE3VDExNTUzMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTU3NmRjMmVlMDFlZGIwZTcwY2IwNWE2NDcyZjY1MTYzOGMxNTJiZjZlNTQ0Njk5ZjMxMTRlMmJiNzgyOWI1OTImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.BAerOtVU5EECWNPW-nI8XpaWLaCRXuKIn3F7bqEY2Cw)
![image](https://private-user-images.githubusercontent.com/96121127/313405388-82f40d27-9881-4aee-9561-dc284a55f965.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM4OTYwMzEsIm5iZiI6MTcyMzg5NTczMSwicGF0aCI6Ii85NjEyMTEyNy8zMTM0MDUzODgtODJmNDBkMjctOTg4MS00YWVlLTk1NjEtZGMyODRhNTVmOTY1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE3VDExNTUzMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTE3MjAxYWJlMzJiZTkxNzUzYmQ0MTJmNGRhMjdjNzI1ZDgwMTQwYzU5MWE4ZDZiM2YwZmFjY2Y5NWM1MTE3MjUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.3XRd45K0DNKDYiUCu6Pgk7dN09Lt0IeHIis5_ZS1yps)
![image](https://private-user-images.githubusercontent.com/96121127/313405409-eff179d0-8bcd-4125-ae77-79ee1d76d509.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM4OTYwMzEsIm5iZiI6MTcyMzg5NTczMSwicGF0aCI6Ii85NjEyMTEyNy8zMTM0MDU0MDktZWZmMTc5ZDAtOGJjZC00MTI1LWFlNzctNzllZTFkNzZkNTA5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE3VDExNTUzMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTc0NTYzMjllMWI2NDM1NWU0NjY1OTZhZDRiNjZiZmM0ZjFlMWVjZjgzNjc0N2U4NmMzN2UyNzc2NDcyMWFlYWImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.twvmau0Y-dyRxf7MGbWYQxkptNa2ILdZXfTZYX8BoQA)
![image](https://private-user-images.githubusercontent.com/96121127/313405425-5dee75c2-2043-404c-9c5d-2f146bc2e40e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM4OTYwMzEsIm5iZiI6MTcyMzg5NTczMSwicGF0aCI6Ii85NjEyMTEyNy8zMTM0MDU0MjUtNWRlZTc1YzItMjA0My00MDRjLTljNWQtMmYxNDZiYzJlNDBlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE3VDExNTUzMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWIxMjMyMzE2M2E5MTNhMzU5OTYxYTBmOTAyYTlkOWJkNWRhMTYwYjY3OTk4ZTdmYTUwYzZhYzAzOWY5OTFjMjEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.N9tJ_WTTVI6nBA9ZvBwt1--FZKCgQsIy70nEYAOHPCw)
最简单的案例
![image](https://private-user-images.githubusercontent.com/96121127/313405605-b9aa0258-e622-4a44-9e1b-ae2fe89793fa.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM4OTYwMzEsIm5iZiI6MTcyMzg5NTczMSwicGF0aCI6Ii85NjEyMTEyNy8zMTM0MDU2MDUtYjlhYTAyNTgtZTYyMi00YTQ0LTllMWItYWUyZmU4OTc5M2ZhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE3VDExNTUzMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTczNzEzMDdlZDdlMmI2NDhhN2I0MzYzZDJiNzE4Njk1Y2NlZGZlY2U0YTY5YWVmMjEwOTI0ZWZhZjdkZmIxYWImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.IPLya9NCFdohyhSwwsFoOYzEsaN3IKZx8Gf7KEtOoQ8)
![image](https://private-user-images.githubusercontent.com/96121127/313405614-d4315420-c567-4543-8522-fbf6c4232cdb.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM4OTYwMzEsIm5iZiI6MTcyMzg5NTczMSwicGF0aCI6Ii85NjEyMTEyNy8zMTM0MDU2MTQtZDQzMTU0MjAtYzU2Ny00NTQzLTg1MjItZmJmNmM0MjMyY2RiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE3VDExNTUzMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWJjOWYzYTUzYmNiYWZlYWNhYmUwNGYyYzhiNDc2YWI2OTMyNjdkY2RiM2Y3NWQ1ZThmZTM2ZGRhNjcyNjExZjkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.-je6KIHE6YmUT5njtZWru3feN5ZHK4VopJ4QQM7pfz4)
期望结果
不要影响用户的原始表单状态
实际结果
实际结果是用户状态被覆盖了
框架版本
No response
浏览器版本
No response
系统版本
No response
Node版本
No response
补充说明
解决办法已经贴图里了,亲测有效~
The text was updated successfully, but these errors were encountered: