|
@@ -1,6 +1,5 @@
|
|
|
import React from 'react'
|
|
import React from 'react'
|
|
|
import { View, Text } from '@tarojs/components'
|
|
import { View, Text } from '@tarojs/components'
|
|
|
-import { useRouter } from '@tarojs/taro'
|
|
|
|
|
import clsx from 'clsx'
|
|
import clsx from 'clsx'
|
|
|
|
|
|
|
|
export interface TabBarItem {
|
|
export interface TabBarItem {
|
|
@@ -39,7 +38,6 @@ const TabBar = React.forwardRef<HTMLDivElement, TabBarProps>(({
|
|
|
selectedColor = '#1890ff',
|
|
selectedColor = '#1890ff',
|
|
|
backgroundColor = '#ffffff',
|
|
backgroundColor = '#ffffff',
|
|
|
}, ref) => {
|
|
}, ref) => {
|
|
|
- const router = useRouter()
|
|
|
|
|
|
|
|
|
|
const currentActiveKey = activeKey || items[0]?.key
|
|
const currentActiveKey = activeKey || items[0]?.key
|
|
|
|
|
|