pref: 代码优化

This commit is contained in:
zdl
2025-11-05 17:08:01 +08:00
parent ff7b8abe9d
commit bc2a3b71c0
2 changed files with 9 additions and 10 deletions

View File

@@ -3,19 +3,14 @@
// ========== 分页配置常量 ==========
export const PAGINATION_CONFIG = {
CAROUSEL_PAGE_SIZE: 5, // 单排模式每页数量
GRID_PAGE_SIZE: 10, // 双排模式每页数量
FOUR_ROW_PAGE_SIZE: 20, // 四排模式每页数量
FOUR_ROW_PAGE_SIZE: 20, // 平铺模式每页数量
VERTICAL_PAGE_SIZE: 10, // 纵向模式每页数量
INITIAL_PAGE: 1, // 初始页码
PRELOAD_RANGE: 2, // 预加载范围前后各N页
};
// ========== 显示模式常量 ==========
export const DISPLAY_MODES = {
CAROUSEL: 'carousel', // 单排轮播模式
GRID: 'grid', // 双排网格模式
FOUR_ROW: 'four-row', // 四排网格模式
FOUR_ROW: 'four-row', // 平铺网格模式
VERTICAL: 'vertical', // 纵向分栏模式
};