mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-22 03:22:31 +08:00
38 lines
912 B
Markdown
38 lines
912 B
Markdown
---
|
|
order: 99
|
|
title:
|
|
zh-CN: _InternalPanelDoNotUseOrYouWillBeFired
|
|
en-US: _InternalPanelDoNotUseOrYouWillBeFired
|
|
debug: true
|
|
---
|
|
|
|
## zh-CN
|
|
|
|
调试用组件,请勿直接使用。
|
|
|
|
## en-US
|
|
|
|
Debug usage. Do not use in your production.
|
|
|
|
```tsx
|
|
import React from 'react';
|
|
import { Modal } from 'antd';
|
|
|
|
/** Test usage. Do not use in your production. */
|
|
const { _InternalPanelDoNotUseOrYouWillBeFired: InternalPanel } = Modal;
|
|
|
|
export default () => (
|
|
<div style={{ display: 'flex', flexDirection: 'column', rowGap: 16 }}>
|
|
<InternalPanel title="Hello World!" style={{ width: '100%', height: 200 }}>
|
|
Hello World?!
|
|
</InternalPanel>
|
|
<InternalPanel type="success" style={{ width: 200, height: 150 }}>
|
|
A good news!
|
|
</InternalPanel>
|
|
<InternalPanel title="Confirm This?" type="confirm" style={{ width: 300, height: 200 }}>
|
|
Some descriptions.
|
|
</InternalPanel>
|
|
</div>
|
|
);
|
|
```
|