✨ feat(自定义tabbar): 完善自定义tabbbar
This commit is contained in:
@@ -5,6 +5,12 @@ import styles from './index.module.scss'
|
||||
const SonComp: FC = memo(() => {
|
||||
return <View className=''>我改变了吗{new Date().getTime()}</View>
|
||||
})
|
||||
// 用户信息
|
||||
const UserInfo:FC = () => {
|
||||
return <View>
|
||||
sdfasdf
|
||||
</View>
|
||||
}
|
||||
|
||||
// 我的
|
||||
const User = () => {
|
||||
@@ -19,7 +25,8 @@ const User = () => {
|
||||
return (
|
||||
<>
|
||||
<View className={styles['main']}>
|
||||
sdfasdfasdf {count}
|
||||
<UserInfo/>
|
||||
sdfasdfasdf {count}
|
||||
<Button onClick={handleCount}>+1</Button>
|
||||
<SonComp />
|
||||
</View>
|
||||
|
||||
Reference in New Issue
Block a user