From 80987bad5f121447efba552822e05e606558a5b0 Mon Sep 17 00:00:00 2001 From: ayang <473033518@qq.com> Date: Fri, 18 Feb 2022 17:45:28 +0800 Subject: [PATCH] perf: remove unuseful function call --- packages/varlet-ui/src/badge/Badge.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/varlet-ui/src/badge/Badge.vue b/packages/varlet-ui/src/badge/Badge.vue index 8fa7834103d..415fcf65b8d 100644 --- a/packages/varlet-ui/src/badge/Badge.vue +++ b/packages/varlet-ui/src/badge/Badge.vue @@ -32,7 +32,7 @@ export default defineComponent({ const contentClass: ComputedRef> = computed(() => { const { type, position, dot, icon } = props - const positionBasic = slots.default?.() && `var-badge__position var-badge--${position}` + const positionBasic = slots.default && `var-badge__position var-badge--${position}` const dotClass = dot && 'var-badge__dot' const positionClass = getPositionClass() const iconClass = icon && 'var-badge__icon'