feat(tooltip): add `appendTo` option to allow customizing tooltip container (#18436)
* feat: allow customed tooltip container * refactor: rename variables: getAppendElement => teleport & customContainer => container * feat: support 3 options to locale the tooltip container * refactor: rename customContainer to container * fix: add model params name * refactor: rename variables: getAppendElement => teleport & customContainer => container * refactor: update based on cr * fix: add missing variable * test: add test case for appendTo * fix: add fallback * fix: only update styled to position:relative when there is no custom container * refactor: rename element name * fix: clearing the _container & el in the dispose function * fix: chartContainer always exists * test: tweak test case * chore: tweak comment * fix(tooltip): fix potential exception when `appendTo` is an empty string * fix(tooltip): fix potential exception when `appendTo` is an empty string or null --------- Co-authored-by: 危翰 <weihan@xiaomi.com> Co-authored-by: plainheart <yhen@all-my-life.cn>
H
Han Wei committed
428e2ad11b1f2b730ed06bcde628a0bfff28df94
Parent: 5b448f6
Committed by GitHub <noreply@github.com>
on 9/2/2023, 9:01:12 AM