refactor(components): [alert] delete unnecessary code (#8129)

This commit is contained in:
류한경 2022-06-07 22:53:30 +09:00 committed by GitHub
parent 740f829acd
commit 339f9680b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,9 +58,7 @@ const ns = useNamespace('alert')
const visible = ref(true) const visible = ref(true)
const iconComponent = computed( const iconComponent = computed(() => TypeComponentsMap[props.type])
() => TypeComponentsMap[props.type] || TypeComponentsMap['info']
)
const iconClass = computed(() => [ const iconClass = computed(() => [
ns.e('icon'), ns.e('icon'),