mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-05 04:37:47 +08:00
refactor(components): [alert] delete unnecessary code (#8129)
This commit is contained in:
parent
740f829acd
commit
339f9680b3
@ -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'),
|
||||||
|
Loading…
Reference in New Issue
Block a user