mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-14 08:09:13 +08:00
2c3ad833f1
* feat: Popver shadow * test: Update snapshot * chore: clean up
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;
|
|
```
|