Browse Source
* fix: global token in Component Token override should be respected * test: add snapshotpull/42536/head
MadCcc
2 years ago
committed by
GitHub
4 changed files with 162 additions and 69 deletions
@ -1,20 +1,33 @@ |
|||
import React from 'react'; |
|||
import { ConfigProvider, message } from 'antd'; |
|||
import React from 'react'; |
|||
|
|||
/** Test usage. Do not use in your production. */ |
|||
const { _InternalPanelDoNotUseOrYouWillBeFired: InternalPanel } = message; |
|||
|
|||
export default () => ( |
|||
<ConfigProvider |
|||
theme={{ |
|||
components: { |
|||
Message: { |
|||
contentPadding: 40, |
|||
contentBg: '#e6f4ff', |
|||
<> |
|||
<ConfigProvider |
|||
theme={{ |
|||
components: { |
|||
Message: { |
|||
contentPadding: 40, |
|||
contentBg: '#e6f4ff', |
|||
}, |
|||
}, |
|||
}} |
|||
> |
|||
<InternalPanel content="Hello World!" type="error" /> |
|||
</ConfigProvider> |
|||
<ConfigProvider |
|||
theme={{ |
|||
components: { |
|||
Message: { |
|||
colorBgElevated: '#e6f4ff', |
|||
}, |
|||
}, |
|||
}, |
|||
}} |
|||
> |
|||
<InternalPanel content="Hello World!" type="error" /> |
|||
</ConfigProvider> |
|||
}} |
|||
> |
|||
<InternalPanel content="Hello World!" type="error" /> |
|||
</ConfigProvider> |
|||
</> |
|||
); |
|||
|
Loading…
Reference in new issue