Skip to content

Commit 50a5365

Browse files
committed
fix: notification error #63
1 parent 26a66d4 commit 50a5365

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

components/notification/index.js

+3-5
Original file line numberDiff line numberDiff line change
@@ -134,17 +134,15 @@ function notice (args) {
134134
)
135135
}
136136

137-
const autoMarginTag = (!description && iconNode)
138-
? <span class={`${prefixCls}-message-single-line-auto-margin`} />
139-
: null
140-
141137
getNotificationInstance(outerPrefixCls, placement || defaultPlacement, (notification) => {
142138
notification.notice({
143139
content: (h) => (
144140
<div class={iconNode ? `${prefixCls}-with-icon` : ''}>
145141
{iconNode && iconNode(h)}
146142
<div class={`${prefixCls}-message`}>
147-
{autoMarginTag}
143+
{(!description && iconNode)
144+
? <span class={`${prefixCls}-message-single-line-auto-margin`} />
145+
: null}
148146
{typeof message === 'function' ? message(h) : message}
149147
</div>
150148
<div class={`${prefixCls}-description`}>

0 commit comments

Comments
 (0)