From 17a3897c219b4d1348c01101ab7d25005384aedd Mon Sep 17 00:00:00 2001 From: zhengyiming <540361168@qq.com> Date: 星期二, 12 八月 2025 14:40:18 +0800 Subject: [PATCH] fix: 修改bug --- packages/components/src/Tabs/ProTabs.vue | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/packages/components/src/Tabs/ProTabs.vue b/packages/components/src/Tabs/ProTabs.vue index e4d8c51..f3d1b77 100644 --- a/packages/components/src/Tabs/ProTabs.vue +++ b/packages/components/src/Tabs/ProTabs.vue @@ -6,6 +6,7 @@ direction, { fullHeight, noContent: !showPaneContent, flexTitle, noSmile: !showSmile }, ]" + :style="tabsStyle" > <div :class="['pro-tabs__titles_wrapper', { isTransparent }]"> <scroll-view @@ -403,6 +404,17 @@ return { marginLeft: px, marginRight: px }; }); const refRandomId = Math.random().toString(36).slice(-8); + +const systemInfo = Taro.getSystemInfoSync(); +console.log('systemInfo: ', systemInfo); + +const tabsStyle = computed(() => { + if (systemInfo.platform === 'ios') { + return { overflow: 'visible' }; + } else { + return {}; + } +}); </script> <style lang="scss"> -- Gitblit v1.9.1