2022-12-06 23:14:30 +08:00
|
|
|
import React from 'react';
|
|
|
|
import { ConfigProvider, Modal } from 'antd';
|
|
|
|
|
|
|
|
/** Test usage. Do not use in your production. */
|
|
|
|
const { _InternalPanelDoNotUseOrYouWillBeFired: InternalPanel } = Modal;
|
|
|
|
|
|
|
|
export default () => (
|
|
|
|
<ConfigProvider theme={{ token: { wireframe: true } }}>
|
|
|
|
<div style={{ display: 'flex', flexDirection: 'column', rowGap: 16 }}>
|
2023-10-08 16:38:54 +08:00
|
|
|
<InternalPanel title="Hello World!" style={{ width: '100%' }}>
|
2022-12-06 23:14:30 +08:00
|
|
|
Hello World?!
|
|
|
|
</InternalPanel>
|
2023-10-08 16:38:54 +08:00
|
|
|
<InternalPanel type="success" style={{ width: 200 }}>
|
2022-12-06 23:14:30 +08:00
|
|
|
A good news!
|
|
|
|
</InternalPanel>
|
2023-10-08 16:38:54 +08:00
|
|
|
<InternalPanel title="Confirm This?" type="confirm" style={{ width: 300 }}>
|
2022-12-06 23:14:30 +08:00
|
|
|
Some descriptions.
|
|
|
|
</InternalPanel>
|
|
|
|
</div>
|
|
|
|
</ConfigProvider>
|
|
|
|
);
|