From 7742c022a55f3908684d21e6e7d7bf07e3de1f5e Mon Sep 17 00:00:00 2001 From: zhouyun1 Date: Wed, 25 Oct 2023 16:14:05 +0800 Subject: [PATCH] feat(pop-confirm): add placement api (#2640) --- .changeset/sharp-pots-clap.md | 5 + .changeset/thirty-oranges-brush.md | 5 + .../dropdown-column-render.stories.tsx | 2 +- .../dropdown-column-render.stories.tsx | 2 +- .../ui/pop-confirm/src/use-pop-confirm.ts | 4 +- .../ui/pop-confirm/stories/index.stories.tsx | 1 + .../pop-confirm/stories/placement.stories.tsx | 136 ++++++++++++++++++ 7 files changed, 151 insertions(+), 4 deletions(-) create mode 100644 .changeset/sharp-pots-clap.md create mode 100644 .changeset/thirty-oranges-brush.md create mode 100644 packages/ui/pop-confirm/stories/placement.stories.tsx diff --git a/.changeset/sharp-pots-clap.md b/.changeset/sharp-pots-clap.md new file mode 100644 index 000000000..cbb5091e4 --- /dev/null +++ b/.changeset/sharp-pots-clap.md @@ -0,0 +1,5 @@ +--- +"@hi-ui/pop-confirm": minor +--- + +feat: add placement api (透传 Popper 参数) diff --git a/.changeset/thirty-oranges-brush.md b/.changeset/thirty-oranges-brush.md new file mode 100644 index 000000000..6d1f690d6 --- /dev/null +++ b/.changeset/thirty-oranges-brush.md @@ -0,0 +1,5 @@ +--- +"@hi-ui/hiui": patch +--- + +PopConfirm feat: add placement api (透传 Popper 参数) diff --git a/packages/ui/cascader/stories/dropdown-column-render.stories.tsx b/packages/ui/cascader/stories/dropdown-column-render.stories.tsx index 5df155ff6..32f0791e6 100644 --- a/packages/ui/cascader/stories/dropdown-column-render.stories.tsx +++ b/packages/ui/cascader/stories/dropdown-column-render.stories.tsx @@ -114,7 +114,7 @@ export const DropdownColumnRender = () => { > header - {React.cloneElement(menu, { style: { height: 198 } })} + {React.cloneElement(menu, { style: { height: 186 } })}