mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-12 23:35:38 +08:00
44 lines
718 B
Markdown
44 lines
718 B
Markdown
|
---
|
||
|
order: 999
|
||
|
title:
|
||
|
zh-CN: _InternalPanelDoNotUseOrYouWillBeFired
|
||
|
en-US: _InternalPanelDoNotUseOrYouWillBeFired
|
||
|
debug: true
|
||
|
---
|
||
|
|
||
|
## zh-CN
|
||
|
|
||
|
调试用组件,请勿直接使用。
|
||
|
|
||
|
## en-US
|
||
|
|
||
|
Debug usage. Do not use in your production.
|
||
|
|
||
|
```tsx
|
||
|
import { Popover } from 'antd';
|
||
|
import React from 'react';
|
||
|
|
||
|
const { _InternalPanelDoNotUseOrYouWillBeFired: InternalPopover } = Popover;
|
||
|
|
||
|
const content = (
|
||
|
<div>
|
||
|
<p>Content</p>
|
||
|
<p>Content</p>
|
||
|
</div>
|
||
|
);
|
||
|
|
||
|
const App: React.FC = () => (
|
||
|
<>
|
||
|
<InternalPopover content={content} title="Title" />
|
||
|
<InternalPopover
|
||
|
content={content}
|
||
|
title="Title"
|
||
|
placement="bottomLeft"
|
||
|
style={{ width: 250 }}
|
||
|
/>
|
||
|
</>
|
||
|
);
|
||
|
|
||
|
export default App;
|
||
|
```
|