| | |
| | | click: (url: string, index: number) => typeof url === 'string', |
| | | }; |
| | | |
| | | const whitePageList = [RouterPath.home, RouterPath.workbenches, RouterPath.mine]; |
| | | const whitePageList = [RouterPath.workbenches, RouterPath.mine]; |
| | | |
| | | export default { |
| | | name: 'CustomTabBar', |
| | |
| | | index={0} |
| | | ></TarBarItem> |
| | | <TarBarItem |
| | | text="发布" |
| | | icon="../assets/tabbar/icon-publish.png" |
| | | activeIcon="../assets/tabbar/icon-publish.png" |
| | | pagePath={TabBarPageRouter.Publish} |
| | | currentPath={_router.path} |
| | | active={system.activeTab === 1} |
| | | className="task" |
| | | onClick={switchTab} |
| | | index={1} |
| | | ></TarBarItem> |
| | | <TarBarItem |
| | | text="我的" |
| | | icon="../assets/tabbar/icon-mine.png" |
| | | activeIcon="../assets/tabbar/icon-mine-active.png" |
| | | pagePath={TabBarPageRouter.Mine} |
| | | currentPath={_router.path} |
| | | active={system.activeTab === 1} |
| | | active={system.activeTab === 2} |
| | | className="mine" |
| | | onClick={switchTab} |
| | | index={1} |
| | | index={2} |
| | | ></TarBarItem> |
| | | </View> |
| | | ); |