mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-15 09:21:22 +08:00
34af3ec550
* feat: component token naming rules * dcos: update * feat: modal token rename * feat: rename result token * feat: statsitic token rename * feat: steps token remane * chore: update snapshot * chore: fix lint * feat: semantic part component * revert: button & notification * revert: files * chore: code clean
40 lines
1.2 KiB
TypeScript
40 lines
1.2 KiB
TypeScript
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={{
|
|
components: {
|
|
Modal: {
|
|
footerBg: '#f6ffed',
|
|
contentBg: '#e6fffb',
|
|
headerBg: '#f9f0ff',
|
|
titleLineHeight: 3,
|
|
titleFontSize: 12,
|
|
titleColor: '#1d39c4',
|
|
},
|
|
},
|
|
}}
|
|
>
|
|
<div style={{ display: 'flex', flexDirection: 'column', rowGap: 16 }}>
|
|
<InternalPanel title="Hello World!" style={{ width: '100%', height: 200 }}>
|
|
Hello World?!
|
|
</InternalPanel>
|
|
<ConfigProvider theme={{ token: { wireframe: true } }}>
|
|
<InternalPanel title="Hello World!" style={{ width: '100%', height: 200 }}>
|
|
Hello World?!
|
|
</InternalPanel>
|
|
</ConfigProvider>
|
|
<InternalPanel type="success" style={{ width: 200, height: 150 }}>
|
|
A good news!
|
|
</InternalPanel>
|
|
<InternalPanel title="Confirm This?" type="confirm" style={{ width: 300, height: 200 }}>
|
|
Some descriptions.
|
|
</InternalPanel>
|
|
</div>
|
|
</ConfigProvider>
|
|
);
|