Skip to content

Commit 5a3b081

Browse files
authored
fix(alert): fix alert class not work (#3067)
1 parent a8e2e87 commit 5a3b081

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/alert/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ const Alert = defineComponent({
150150
});
151151
return closed ? null : (
152152
<Transition {...transitionProps}>
153-
<div {...$attrs} v-show={!closing} class={alertCls} data-show={!closing}>
153+
<div {...$attrs} v-show={!closing} class={[$attrs.class, alertCls]} data-show={!closing}>
154154
{showIcon ? iconNode : null}
155155
<span class={`${prefixCls}-message`}>{message}</span>
156156
<span class={`${prefixCls}-description`}>{description}</span>

0 commit comments

Comments
 (0)