mirror of
https://github.com/shy3130/tick-stock-panel.git
synced 2026-11-02 10:26:13 +00:00
fix(dashboard): 默认布局复刻原版排布 — 监控中心回到右栏(榜单右侧/梯队下方), 四榜单收窄为2列占左8列, 不再整行占满把监控挤到页面最底部
This commit is contained in:
@@ -260,7 +260,7 @@ export function minSizeOf(t: WidgetType): { w: number; h: number } {
|
||||
return { w: d?.minW ?? 2, h: d?.minH ?? 4 }
|
||||
}
|
||||
|
||||
/** 默认布局 — 复刻抽离前排布(网格近似): 顶部通栏 → 三列中段 → 双热度 → 四榜单 */
|
||||
/** 默认布局 — 复刻抽离前排布: 顶部通栏 → 三列中段 → 双热度+梯队 → 左侧四榜单 + 右侧监控(原 20rem 右栏) */
|
||||
export const DEFAULT_LAYOUT: DashboardItem[] = [
|
||||
{ i: 'indices', t: 'indices', x: 0, y: 0, w: 12, h: 2 },
|
||||
{ i: 'kpi', t: 'kpi', x: 0, y: 2, w: 12, h: 2 },
|
||||
@@ -270,9 +270,9 @@ export const DEFAULT_LAYOUT: DashboardItem[] = [
|
||||
{ i: 'concept-rank', t: 'concept-rank', x: 0, y: 12, w: 4, h: 8 },
|
||||
{ i: 'industry-rank', t: 'industry-rank', x: 4, y: 12, w: 4, h: 8 },
|
||||
{ i: 'ladder', t: 'ladder', x: 8, y: 12, w: 4, h: 8 },
|
||||
{ i: 'gainers', t: 'gainers', x: 0, y: 20, w: 3, h: 10 },
|
||||
{ i: 'losers', t: 'losers', x: 3, y: 20, w: 3, h: 10 },
|
||||
{ i: 'turnover', t: 'turnover', x: 6, y: 20, w: 3, h: 10 },
|
||||
{ i: 'activity', t: 'activity', x: 9, y: 20, w: 3, h: 10 },
|
||||
{ i: 'monitor', t: 'monitor', x: 0, y: 30, w: 4, h: 10 },
|
||||
{ i: 'gainers', t: 'gainers', x: 0, y: 20, w: 2, h: 10 },
|
||||
{ i: 'losers', t: 'losers', x: 2, y: 20, w: 2, h: 10 },
|
||||
{ i: 'turnover', t: 'turnover', x: 4, y: 20, w: 2, h: 10 },
|
||||
{ i: 'activity', t: 'activity', x: 6, y: 20, w: 2, h: 10 },
|
||||
{ i: 'monitor', t: 'monitor', x: 8, y: 20, w: 4, h: 10 },
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user