| 1 | /** |
| 2 | * 草稿箱 Tab 栏 Store 类型定义 |
| 3 | * 管理 Tab 列表、选中状态、更多面板数据 |
| 4 | */ |
| 5 | |
| 6 | import type { MaterialPagination, PromotionPlan } from '@/api/materials/material.types' |
| 7 | |
| 8 | export interface IPlanTabStoreState { |
| 9 | /** Tab 栏显示的计划列表 */ |
| 10 | tabPlans: PromotionPlan[] |
| 11 | tabPlansLoading: boolean |
| 12 | /** 当前选中计划 ID(持久化) */ |
| 13 | selectedPlanId: string | null |
| 14 | /** 「更多」面板的完整列表 */ |
| 15 | morePlans: PromotionPlan[] |
| 16 | morePlansLoading: boolean |
| 17 | morePlansPagination: MaterialPagination |
| 18 | /** 更多面板是否展开 */ |
| 19 | morePanelOpen: boolean |
| 20 | /** 是否已初始化 */ |
| 21 | initialized: boolean |
| 22 | } |
| 23 |