mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-03 00:09:39 +08:00
b8a2f0a0c7
* feat: Modal type support PurePanel * feat: Modal PurePanel support type * chore: do fix * chore: do fix * fix: Static logic locale
38 lines
873 B
Markdown
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>
|
|
);
|
|
```
|