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 } );