mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-03 04:27:41 +08:00
fix: notification error #63
This commit is contained in:
parent
26a66d42cc
commit
50a5365479
@ -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) => {
|
||||
notification.notice({
|
||||
content: (h) => (
|
||||
<div class={iconNode ? `${prefixCls}-with-icon` : ''}>
|
||||
{iconNode && iconNode(h)}
|
||||
<div class={`${prefixCls}-message`}>
|
||||
{autoMarginTag}
|
||||
{(!description && iconNode)
|
||||
? <span class={`${prefixCls}-message-single-line-auto-margin`} />
|
||||
: null}
|
||||
{typeof message === 'function' ? message(h) : message}
|
||||
</div>
|
||||
<div class={`${prefixCls}-description`}>
|
||||
|
Loading…
Reference in New Issue
Block a user