From 7e86fb9e431ef119d5875c315f877d173608d3aa Mon Sep 17 00:00:00 2001 From: chenjiahan Date: Mon, 21 Sep 2020 16:09:11 +0800 Subject: [PATCH] chore(Tabbar): rename root ref --- src/tabbar/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tabbar/index.js b/src/tabbar/index.js index d9afae016..4c174acb8 100644 --- a/src/tabbar/index.js +++ b/src/tabbar/index.js @@ -37,9 +37,9 @@ export default createComponent({ emits: ['change', 'update:modelValue'], setup(props, { emit, slots }) { - const tabbarRef = ref(); + const root = ref(); const children = reactive([]); - const renderPlaceholder = usePlaceholder(tabbarRef, bem); + const renderPlaceholder = usePlaceholder(root, bem); const isUnfit = () => { if (isDef(props.safeAreaInsetBottom)) { @@ -54,7 +54,7 @@ export default createComponent({ const unfit = isUnfit(); return (