mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-21 13:18:04 +08:00
8cf629f126
* fix:废弃 api 替换成新 api * Update demo-extend.test.ts.snap --------- Co-authored-by: lijianan <574980606@qq.com>
16 lines
457 B
TypeScript
16 lines
457 B
TypeScript
import React from 'react';
|
|
import { Button, Space, Tooltip } from 'antd';
|
|
|
|
const App: React.FC = () => (
|
|
<Space direction="vertical">
|
|
<Tooltip placement="topLeft" title="Prompt Text">
|
|
<Button>Align edge / 边缘对齐</Button>
|
|
</Tooltip>
|
|
<Tooltip placement="topLeft" title="Prompt Text" arrow={{ pointAtCenter: true }}>
|
|
<Button>Arrow points to center / 箭头指向中心</Button>
|
|
</Tooltip>
|
|
</Space>
|
|
);
|
|
|
|
export default App;
|