260226_05_ENH: 카테고리 파트 옵션으로 ChartLegend, ChartTopMargin 추가
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import {BANNER_GROUP, BANNER_KEY_MAP, PRODUCT_KEY_MAP, PRODUCTS_FILTER_ITEM} from "@/const/lgConst";
|
||||
import {CategoryTargetType} from "@/config/filter.types";
|
||||
import {EChartsOption} from "echarts";
|
||||
|
||||
export type ProductKey = keyof typeof PRODUCT_KEY_MAP;
|
||||
export type BannerKey = keyof typeof BANNER_KEY_MAP;
|
||||
@@ -77,15 +78,21 @@ export type CategoryChartMode = "none" | "stack" | "reverseStack" | "horizontal"
|
||||
export type PageData<T> = {
|
||||
title: string;
|
||||
chartMode: CategoryChartMode;
|
||||
data: T[];
|
||||
chartLegend?: LegendOption;
|
||||
chartTopMargin?:number;
|
||||
chartHeight?: number | string;
|
||||
chartWidth?: number;
|
||||
data: T[];
|
||||
};
|
||||
|
||||
export type LegendOption = EChartsOption["legend"];
|
||||
|
||||
export type CategoryFieldSpec = {
|
||||
title: string | Record<CategoryTargetType, string>;
|
||||
requestKey: string;
|
||||
chartMode:CategoryChartMode;
|
||||
chartLegend?: LegendOption;
|
||||
chartTopMargin?:number;
|
||||
qidByMode: Partial<Record<CategoryTargetType, string>>; // mode별 qid (없으면 숨김/요청 제외)
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user