Replies: 1 comment
-
@danranVm 可以增加一个update的方法 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
tooltip 和 overlay 都没有暴露 update 方法,让 tooltip 能在显示过程中根据 dom 变化更新显示位置等。
当 tooltip 的 target dom 变更位置,比如从页面右边移到左边,tooltip 只能隐藏后再显示才会从正确的位置出现 (这样会有闪烁),无法通过 forceUpdate 等方法随着 target dom 一起变换位置。
是否有什么方法可以实现该操作?
idux/packages/components/_private/overlay/src/Overlay.tsx
Lines 37 to 50 in 78738c2
Beta Was this translation helpful? Give feedback.
All reactions