2022-06-11 21:39:58 +08:00
|
|
|
---
|
|
|
|
order: 99
|
|
|
|
title:
|
2022-06-13 17:55:00 +08:00
|
|
|
zh-CN: _InternalPanelDoNotUseOrYouWillBeFired
|
|
|
|
en-US: _InternalPanelDoNotUseOrYouWillBeFired
|
2022-06-11 21:39:58 +08:00
|
|
|
debug: true
|
|
|
|
---
|
|
|
|
|
|
|
|
## zh-CN
|
|
|
|
|
|
|
|
调试用组件,请勿直接使用。
|
|
|
|
|
|
|
|
## en-US
|
|
|
|
|
|
|
|
Debug usage. Do not use in your production.
|
|
|
|
|
|
|
|
```tsx
|
2022-07-15 20:51:07 +08:00
|
|
|
import React from 'react';
|
2022-06-11 21:39:58 +08:00
|
|
|
import { Modal } from 'antd';
|
|
|
|
|
|
|
|
/** Test usage. Do not use in your production. */
|
2022-06-13 17:55:00 +08:00
|
|
|
const { _InternalPanelDoNotUseOrYouWillBeFired: InternalPanel } = Modal;
|
2022-06-11 21:39:58 +08:00
|
|
|
|
2022-07-15 20:51:07 +08:00
|
|
|
export default () => (
|
|
|
|
<div style={{ display: 'flex', flexDirection: 'column', rowGap: 16 }}>
|
|
|
|
<InternalPanel title="Hello World!" style={{ width: '100%' }}>
|
|
|
|
Hello World?!
|
|
|
|
</InternalPanel>
|
|
|
|
<InternalPanel type="success" style={{ width: 200 }}>
|
|
|
|
A good news!
|
|
|
|
</InternalPanel>
|
|
|
|
<InternalPanel title="Confirm This?" type="confirm" style={{ width: 300 }}>
|
|
|
|
Some descriptions.
|
|
|
|
</InternalPanel>
|
|
|
|
</div>
|
|
|
|
);
|
2022-06-11 21:39:58 +08:00
|
|
|
```
|