feat: 首页更新
This commit is contained in:
26
pages/HomeScreen/components/index.ts
Normal file
26
pages/HomeScreen/components/index.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
/**
|
||||
* 首页组件统一导出
|
||||
*
|
||||
* 所有组件都使用 React.memo 进行性能优化
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
import BannerSwiperComponent from './BannerSwiper';
|
||||
import NoticeBarComponent from './NoticeBar';
|
||||
import GameCategoryMenuComponent from './GameCategoryMenu';
|
||||
import LobbyComponent from './Lobby';
|
||||
import HighPrizeGameComponent from './HighPrizeGame';
|
||||
import FastFootNavComponent from './FastFootNav';
|
||||
import HeaderComponent from './Header';
|
||||
import BottomTabsComponent from './BottomTabs';
|
||||
|
||||
// 使用 React.memo 优化组件性能,避免不必要的重新渲染
|
||||
export const BannerSwiper = React.memo(BannerSwiperComponent);
|
||||
export const NoticeBar = React.memo(NoticeBarComponent);
|
||||
export const GameCategoryMenu = React.memo(GameCategoryMenuComponent);
|
||||
export const Lobby = React.memo(LobbyComponent);
|
||||
export const HighPrizeGame = React.memo(HighPrizeGameComponent);
|
||||
export const FastFootNav = React.memo(FastFootNavComponent);
|
||||
export const Header = React.memo(HeaderComponent);
|
||||
export const BottomTabs = React.memo(BottomTabsComponent);
|
||||
|
||||
Reference in New Issue
Block a user