pref: h5 分页UI调整
This commit is contained in:
@@ -651,12 +651,12 @@ const [currentMode, setCurrentMode] = useState('vertical');
|
|||||||
px={6}
|
px={6}
|
||||||
boxShadow="sm"
|
boxShadow="sm"
|
||||||
>
|
>
|
||||||
<Flex justify="space-between" align="center">
|
<Flex justify="space-between" align="center" flexWrap="wrap" gap={2}>
|
||||||
{/* 左侧:模式切换按钮 */}
|
{/* 左侧:模式切换按钮 */}
|
||||||
<ModeToggleButtons mode={mode} onModeChange={handleModeToggle} />
|
<ModeToggleButtons mode={mode} onModeChange={handleModeToggle} />
|
||||||
|
|
||||||
{/* 右侧:分页控制器(仅在纵向模式显示) */}
|
{/* 右侧:分页控制器(仅在纵向模式显示),H5 放不下时折行 */}
|
||||||
{mode === 'vertical' && totalPages > 1 && (
|
{!isMobile && mode === 'vertical' && totalPages > 1 && (
|
||||||
<PaginationControl
|
<PaginationControl
|
||||||
currentPage={currentPage}
|
currentPage={currentPage}
|
||||||
totalPages={totalPages}
|
totalPages={totalPages}
|
||||||
@@ -731,6 +731,15 @@ const [currentMode, setCurrentMode] = useState('vertical');
|
|||||||
</ModalContent>
|
</ModalContent>
|
||||||
</Modal>
|
</Modal>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
{/* 右侧:分页控制器(仅在纵向模式显示),H5 放不下时折行 */}
|
||||||
|
{mode === 'vertical' && totalPages > 1 && (
|
||||||
|
<PaginationControl
|
||||||
|
currentPage={currentPage}
|
||||||
|
totalPages={totalPages}
|
||||||
|
onPageChange={handlePageChangeWithScroll}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
</Card>
|
</Card>
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user