fix: notification error #63
parent
e4d0a12839
commit
ebe942dd76
|
@ -134,17 +134,15 @@ function notice (args) {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
const autoMarginTag = (!description && iconNode)
|
|
||||||
? <span class={`${prefixCls}-message-single-line-auto-margin`} />
|
|
||||||
: null
|
|
||||||
|
|
||||||
getNotificationInstance(outerPrefixCls, placement || defaultPlacement, (notification) => {
|
getNotificationInstance(outerPrefixCls, placement || defaultPlacement, (notification) => {
|
||||||
notification.notice({
|
notification.notice({
|
||||||
content: (h) => (
|
content: (h) => (
|
||||||
<div class={iconNode ? `${prefixCls}-with-icon` : ''}>
|
<div class={iconNode ? `${prefixCls}-with-icon` : ''}>
|
||||||
{iconNode && iconNode(h)}
|
{iconNode && iconNode(h)}
|
||||||
<div class={`${prefixCls}-message`}>
|
<div class={`${prefixCls}-message`}>
|
||||||
{autoMarginTag}
|
{(!description && iconNode)
|
||||||
|
? <span class={`${prefixCls}-message-single-line-auto-margin`} />
|
||||||
|
: null}
|
||||||
{typeof message === 'function' ? message(h) : message}
|
{typeof message === 'function' ? message(h) : message}
|
||||||
</div>
|
</div>
|
||||||
<div class={`${prefixCls}-description`}>
|
<div class={`${prefixCls}-description`}>
|
||||||
|
|
Loading…
Reference in New Issue