-
Notifications
You must be signed in to change notification settings - Fork 328
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
[Table] empty内容的居中方式,无法适应Table宽度的变化 #1319
Comments
👋 @tustzdm,感谢给 TDesign 提出了 issue。 |
|
经过确认,确实有问题,没有动态处理宽度,我来处理下 2022-08-17.8.25.57.mov |
其实,不仅仅是 Empty 元素,还有吸顶表头或者表尾,很多其他的元素,都是依赖数据变化更新 DOM。 单纯的外层 div 变化,难以检测。所以会存在部分场景不更新的情况,希望框架哪天能出一个监听 DOM 变化的特性。 为解决实际业务问题,组件会提供 |
这个 PR 中已新增对外实例方法, |
0.40.4 fixed |
https://caniuse.com/?search=MutationObserver 可以使用这个特性监听 DOM,变化,我们修复一下这个问题 |
resolved in #1420 修复效果如下方视频所示 2022-09-02.8.59.37.mov |
0.40.6 fixed |
tdesign-react 版本
0.40.3
重现链接
https://codesandbox.io/s/tdesign-react-demo-forked-894el4?file=/src/demo.jsx
重现步骤
见codesandbox
期望结果
empty居中
实际结果
No response
框架版本
No response
浏览器版本
No response
系统版本
No response
Node版本
No response
补充说明
No response
The text was updated successfully, but these errors were encountered: