docs: Select optimization demo (#49410)

* docs: Optimization demo

* test: update snap

* docs: update

* docs: update
This commit is contained in:
Wanpan 2024-06-14 18:03:53 +08:00 committed by GitHub
parent 9f2fb20358
commit 4f1ca4c52b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 2 deletions

View File

@ -10420,7 +10420,7 @@ exports[`renders components/select/demo/responsive.tsx extend context correctly
</span>
<div
class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-tooltip-placement-top"
style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box;"
style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box; pointer-events: none;"
>
<div
class="ant-tooltip-arrow"

View File

@ -41,7 +41,10 @@ const App: React.FC = () => {
{...sharedProps}
{...selectProps}
maxTagPlaceholder={(omittedValues) => (
<Tooltip title={omittedValues.map(({ label }) => label).join(', ')}>
<Tooltip
overlayStyle={{ pointerEvents: 'none' }}
title={omittedValues.map(({ label }) => label).join(', ')}
>
<span>Hover Me</span>
</Tooltip>
)}