From 5c896040446cfe0ec955a4154e71ab1e7e6011b1 Mon Sep 17 00:00:00 2001 From: DEVIL <84760533+2977938133@users.noreply.github.com> Date: Fri, 26 Apr 2024 18:06:02 +0800 Subject: [PATCH] =?UTF-8?q?fix(tabs):=20inject=20=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20=3F.=20(#3045)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/packages/__VUE/tabpane/index.taro.vue | 2 +- src/packages/__VUE/tabpane/index.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/packages/__VUE/tabpane/index.taro.vue b/src/packages/__VUE/tabpane/index.taro.vue index 895721ce1b..643ac0e6ee 100644 --- a/src/packages/__VUE/tabpane/index.taro.vue +++ b/src/packages/__VUE/tabpane/index.taro.vue @@ -30,7 +30,7 @@ export default create({ const paneStyle = computed(() => { return { display: - parentOption.animatedTime.value == 0 && props.paneKey != parentOption.activeKey.value ? 'none' : undefined + parentOption?.animatedTime.value == 0 && props.paneKey != parentOption?.activeKey.value ? 'none' : undefined } as CSSProperties }) return { diff --git a/src/packages/__VUE/tabpane/index.vue b/src/packages/__VUE/tabpane/index.vue index 895721ce1b..643ac0e6ee 100644 --- a/src/packages/__VUE/tabpane/index.vue +++ b/src/packages/__VUE/tabpane/index.vue @@ -30,7 +30,7 @@ export default create({ const paneStyle = computed(() => { return { display: - parentOption.animatedTime.value == 0 && props.paneKey != parentOption.activeKey.value ? 'none' : undefined + parentOption?.animatedTime.value == 0 && props.paneKey != parentOption?.activeKey.value ? 'none' : undefined } as CSSProperties }) return {