|
@@ -3,7 +3,6 @@ import { tabbarStore } from './tabbar'
|
|
|
// 'i-carbon-code',
|
|
// 'i-carbon-code',
|
|
|
import { tabbarList as _tabBarList, cacheTabbarEnable, selectedTabbarStrategy, TABBAR_MAP } from './tabbarList'
|
|
import { tabbarList as _tabBarList, cacheTabbarEnable, selectedTabbarStrategy, TABBAR_MAP } from './tabbarList'
|
|
|
|
|
|
|
|
-// @ts-expect-error 预知的判断
|
|
|
|
|
const customTabbarEnable
|
|
const customTabbarEnable
|
|
|
= selectedTabbarStrategy === TABBAR_MAP.CUSTOM_TABBAR_WITH_CACHE
|
|
= selectedTabbarStrategy === TABBAR_MAP.CUSTOM_TABBAR_WITH_CACHE
|
|
|
|| selectedTabbarStrategy === TABBAR_MAP.CUSTOM_TABBAR_WITHOUT_CACHE
|
|
|| selectedTabbarStrategy === TABBAR_MAP.CUSTOM_TABBAR_WITHOUT_CACHE
|
|
@@ -22,7 +21,6 @@ function selectTabBar({ value: index }: { value: number }) {
|
|
|
}
|
|
}
|
|
|
onLoad(() => {
|
|
onLoad(() => {
|
|
|
// 解决原生 tabBar 未隐藏导致有2个 tabBar 的问题
|
|
// 解决原生 tabBar 未隐藏导致有2个 tabBar 的问题
|
|
|
- // @ts-expect-error 预知的判断
|
|
|
|
|
const hideRedundantTabbarEnable = selectedTabbarStrategy === TABBAR_MAP.CUSTOM_TABBAR_WITH_CACHE
|
|
const hideRedundantTabbarEnable = selectedTabbarStrategy === TABBAR_MAP.CUSTOM_TABBAR_WITH_CACHE
|
|
|
hideRedundantTabbarEnable
|
|
hideRedundantTabbarEnable
|
|
|
&& uni.hideTabBar({
|
|
&& uni.hideTabBar({
|