diff --git a/src/views/Community/components/DynamicNewsCard/constants.js b/src/views/Community/components/DynamicNewsCard/constants.js index c1df8422..af511623 100644 --- a/src/views/Community/components/DynamicNewsCard/constants.js +++ b/src/views/Community/components/DynamicNewsCard/constants.js @@ -5,6 +5,8 @@ export const PAGINATION_CONFIG = { CAROUSEL_PAGE_SIZE: 5, // 单排模式每页数量 GRID_PAGE_SIZE: 10, // 双排模式每页数量 + FOUR_ROW_PAGE_SIZE: 20, // 四排模式每页数量 + VERTICAL_PAGE_SIZE: 10, // 纵向模式每页数量 INITIAL_PAGE: 1, // 初始页码 PRELOAD_RANGE: 2, // 预加载范围(前后各N页) }; @@ -13,6 +15,8 @@ export const PAGINATION_CONFIG = { export const DISPLAY_MODES = { CAROUSEL: 'carousel', // 单排轮播模式 GRID: 'grid', // 双排网格模式 + FOUR_ROW: 'four-row', // 四排网格模式 + VERTICAL: 'vertical', // 纵向分栏模式 }; export const DEFAULT_MODE = DISPLAY_MODES.CAROUSEL;