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.4
https://stackblitz.com/edit/react-bzzkra?file=src%2Findex.js
将2.2拖到2.1之后,2.1的展开收起异常,如图
看了下代码,在拖拽完更新store里面treeData的时候,只给node的children赋值,没有给data赋值children
导致判断添加treeNodeOpen时出问题了,这里判断不知是否可以改成直接用node.children还是说之前stroe里面的update有bug
No response
The text was updated successfully, but these errors were encountered:
👋 @zcy97,感谢给 TDesign 提出了 issue。 请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。
Sorry, something went wrong.
No branches or pull requests
tdesign-react 版本
1.5.4
重现链接
https://stackblitz.com/edit/react-bzzkra?file=src%2Findex.js
重现步骤
将2.2拖到2.1之后,2.1的展开收起异常,如图
![11111](https://private-user-images.githubusercontent.com/34047885/317710652-2015007b-40e4-49e6-bb7f-1a4b425ce316.gif?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM4OTYyOTAsIm5iZiI6MTcyMzg5NTk5MCwicGF0aCI6Ii8zNDA0Nzg4NS8zMTc3MTA2NTItMjAxNTAwN2ItNDBlNC00OWU2LWJiN2YtMWE0YjQyNWNlMzE2LmdpZj9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE3VDExNTk1MFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTY2Yjk1OTRjZGJiMDE3NzMyYjY5NmRhOTIzMGVmOGY4OTEyZjlkN2IzZDcxMDdjMjNmNDRjZWRlNzJlNmJkYjQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.08-5s7iFIgSWaP7vgm4hFNuTkCBUt9n_3JvtGLEPHmw)
看了下代码,在拖拽完更新store里面treeData的时候,只给node的children赋值,没有给data赋值children
![1111111](https://private-user-images.githubusercontent.com/34047885/317711164-b63f583e-dacf-429c-b940-1fb6ee36055b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM4OTYyOTAsIm5iZiI6MTcyMzg5NTk5MCwicGF0aCI6Ii8zNDA0Nzg4NS8zMTc3MTExNjQtYjYzZjU4M2UtZGFjZi00MjljLWI5NDAtMWZiNmVlMzYwNTViLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE3VDExNTk1MFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWMxYTAwZTQ5NmM5NTk1OGVkNjk2ZDRiNTBkMTlkOTZlMmU1YTVjYzIzYzI3M2E3NDk0MmZlZGQ0ZmZmNzgwODEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.q4k2abxFBUdD-eVr6sBfwPtNjCFGykOf3mJTAl_-o8c)
导致判断添加treeNodeOpen时出问题了,这里判断不知是否可以改成直接用node.children还是说之前stroe里面的update有bug
![屏幕截图 2024-03-28 194008](https://private-user-images.githubusercontent.com/34047885/317711745-13d275b7-7b25-484e-9856-241c22b98546.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM4OTYyOTAsIm5iZiI6MTcyMzg5NTk5MCwicGF0aCI6Ii8zNDA0Nzg4NS8zMTc3MTE3NDUtMTNkMjc1YjctN2IyNS00ODRlLTk4NTYtMjQxYzIyYjk4NTQ2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE3VDExNTk1MFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWI0ZDc0ZGMwZWU0NDJjZDFkNzAxY2NkZGI1NzI5NDM4OGUzZjEzNjZhZjkzMDE1MGMxZGJiNWEyYThjMTQ0MzQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.mGSHSdkPD0b4V1OfE-pq0ntj4K7Igr97ChQ8MgRk484)
期望结果
No response
实际结果
No response
框架版本
No response
浏览器版本
No response
系统版本
No response
Node版本
No response
补充说明
No response
The text was updated successfully, but these errors were encountered: