element
element copied to clipboard
[Feature Request] [tooltip] Make hiding debounce optional
Existing Component
Yes
Component Name
Tooltip
Description
It's a bit confusing that there's hide-after parameter that by default is 0 (so it should be instant hiding), but there is a debounce of 200 ms hardcoded into the component. When elements are close to each other and have tooltip, it's very annoying how they disappear, because of the debounceClose.
I propose to make the debounceClose optional as a parameter, with default value 200 ms (as it is hardcoded now.) and if set to 0, then switch off debouncing completey.
Still seem to be seeing this in v2.15.13: https://github.com/ElemeFE/element/blob/v2.15.13/packages/tooltip/src/main.js#L75