ant-design/components/modal/demo/render-panel.md
二货机器人 b8a2f0a0c7
feat: Modal PureRender type support type (#36544)
* feat: Modal type support PurePanel

* feat: Modal PurePanel support type

* chore: do fix

* chore: do fix

* fix: Static logic locale
2022-07-15 20:51:07 +08:00

38 lines
873 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%' }}>
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>
);
```