fix: [alert] description value in title's class (#9771)

This commit is contained in:
白雾三语 2022-09-15 14:19:36 +08:00 committed by GitHub
parent f90d3aa6ac
commit 4d1cb2dbe5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,9 +65,9 @@ const iconClass = computed(() => [
{ [ns.is('big')]: !!props.description || !!slots.default },
])
const isBoldTitle = computed(
() => props.description || { [ns.is('bold')]: slots.default }
)
const isBoldTitle = computed(() => {
return { [ns.is('bold')]: props.description || slots.default }
})
const close = (evt: MouseEvent) => {
visible.value = false