fix(alert): fix alert class not work (#3067)

pull/3079/head
Vben 4 years ago committed by GitHub
parent a8e2e87fe1
commit 5a3b08167d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -150,7 +150,7 @@ const Alert = defineComponent({
});
return closed ? null : (
<Transition {...transitionProps}>
<div {...$attrs} v-show={!closing} class={alertCls} data-show={!closing}>
<div {...$attrs} v-show={!closing} class={[$attrs.class, alertCls]} data-show={!closing}>
{showIcon ? iconNode : null}
<span class={`${prefixCls}-message`}>{message}</span>
<span class={`${prefixCls}-description`}>{description}</span>

Loading…
Cancel
Save