diff --git a/packages/ui/popover/stories/content.stories.tsx b/packages/ui/popover/stories/content.stories.tsx index 53cd5b459..61402d0c0 100644 --- a/packages/ui/popover/stories/content.stories.tsx +++ b/packages/ui/popover/stories/content.stories.tsx @@ -14,6 +14,8 @@ export const Content = () => { const [visible, setVisible] = React.useState(false) const [loading, setLoading] = React.useState(false) + const popoverVisibleRef = React.useRef(false) + const [popoverVisible, setPopoverVisible] = React.useState(false) const title = (
{ }} > 文字标题 - } onClick={() => setVisible(false)} /> + } + onClick={() => { + setVisible(false) + popoverVisibleRef.current = false + }} + />
) @@ -61,7 +70,14 @@ export const Content = () => {
- + +