-
Notifications
You must be signed in to change notification settings - Fork 19.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(tooltip): add
appendTo
option to allow customizing tooltip con…
…tainer (#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>
- Loading branch information
1 parent
5b448f6
commit 428e2ad
Showing
4 changed files
with
597 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.