From 8ad8f80cfdba418bd2f5dcc104e8a1a7115994bc Mon Sep 17 00:00:00 2001 From: itsimddc Date: Sun, 14 Sep 2025 21:55:27 +0800 Subject: [PATCH] perf(bubble-list): better way to enable default value --- packages/core/src/components/BubbleList/index.vue | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/core/src/components/BubbleList/index.vue b/packages/core/src/components/BubbleList/index.vue index f5953fde..8916f30a 100644 --- a/packages/core/src/components/BubbleList/index.vue +++ b/packages/core/src/components/BubbleList/index.vue @@ -41,14 +41,13 @@ function initStyle() { ); } -onMounted(() => { - initStyle(); -}); - watch( () => [props.maxHeight, props.btnIconSize], () => { initStyle(); + }, + { + immediate: true } );