Skip to content

Commit

Permalink
demo: replace abandoned APIs with new ones (#47519)
Browse files Browse the repository at this point in the history
* fix:废弃 api 替换成新 api

* Update demo-extend.test.ts.snap

---------

Co-authored-by: lijianan <574980606@qq.com>
  • Loading branch information
susu-hu and li-jia-nan committed Feb 21, 2024
1 parent 6033c69 commit 8cf629f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .dumi/theme/slots/Header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ const Header: React.FC = () => {
content={menu}
trigger="click"
open={menuVisible}
arrow={{ arrowPointAtCenter: true }}
arrow={{ pointAtCenter: true }}
onOpenChange={onMenuVisibleChange}
>
<MenuOutlined className="nav-phone-icon" onClick={handleShowMenu} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -508,11 +508,7 @@ exports[`renders components/tooltip/demo/arrow-point-at-center.tsx extend contex
</div>
`;

exports[`renders components/tooltip/demo/arrow-point-at-center.tsx extend context correctly 2`] = `
[
"Warning: [antd: Tooltip] \`arrowPointAtCenter\` is deprecated. Please use \`arrow={{ pointAtCenter: true }}\` instead.",
]
`;
exports[`renders components/tooltip/demo/arrow-point-at-center.tsx extend context correctly 2`] = `[]`;

exports[`renders components/tooltip/demo/auto-adjust-overflow.tsx extend context correctly 1`] = `
<div
Expand Down
2 changes: 1 addition & 1 deletion components/tooltip/demo/arrow-point-at-center.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const App: React.FC = () => (
<Tooltip placement="topLeft" title="Prompt Text">
<Button>Align edge / 边缘对齐</Button>
</Tooltip>
<Tooltip placement="topLeft" title="Prompt Text" arrowPointAtCenter>
<Tooltip placement="topLeft" title="Prompt Text" arrow={{ pointAtCenter: true }}>
<Button>Arrow points to center / 箭头指向中心</Button>
</Tooltip>
</Space>
Expand Down

0 comments on commit 8cf629f

Please sign in to comment.