mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 19:19:57 +08:00
icons in message component use filled theme
This commit is contained in:
parent
bd53700766
commit
e3eb3c63a1
@ -72,13 +72,14 @@ function notice(args: ArgsProps): MessageType {
|
||||
return resolve(true);
|
||||
};
|
||||
getMessageInstance((instance) => {
|
||||
const iconNode = <Icon type={iconType} theme={iconType === 'loading' ? 'outlined' : 'filled'} />;
|
||||
instance.notice({
|
||||
key: target,
|
||||
duration,
|
||||
style: {},
|
||||
content: (
|
||||
<div className={`${prefixCls}-custom-content${args.type ? ` ${prefixCls}-${args.type}` : ''}`}>
|
||||
{args.icon ? args.icon : iconType ? <Icon type={iconType} /> : ''}
|
||||
{args.icon ? args.icon : iconType ? iconNode : ''}
|
||||
<span>{args.content}</span>
|
||||
</div>
|
||||
),
|
||||
|
Loading…
Reference in New Issue
Block a user