mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-11 23:00:20 +08:00
b8a2f0a0c7
* feat: Modal type support PurePanel * feat: Modal PurePanel support type * chore: do fix * chore: do fix * fix: Static logic locale
873 B
873 B
order | title | debug | ||||
---|---|---|---|---|---|---|
99 |
|
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>
);