mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 22:36:31 +08:00
docs: Select optimization demo (#49410)
* docs: Optimization demo * test: update snap * docs: update * docs: update
This commit is contained in:
parent
9f2fb20358
commit
4f1ca4c52b
@ -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"
|
||||
|
@ -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>
|
||||
)}
|
||||
|
Loading…
Reference in New Issue
Block a user