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

873 B

order title debug
99
zh-CN en-US
_InternalPanelDoNotUseOrYouWillBeFired _InternalPanelDoNotUseOrYouWillBeFired
true

zh-CN

调试用组件,请勿直接使用。

en-US

Debug usage. Do not use in your production.

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>
);