fix: update config

This commit is contained in:
Qiuxia Fan
2022-01-12 18:47:04 +08:00
parent 5b95557905
commit a5f8cc2900
10 changed files with 31 additions and 40 deletions

View File

@@ -20,9 +20,9 @@ export interface LayoutConfig {
w: number;
h: number;
i: string;
widget: WidgetConfig;
graph: GraphConfig;
standard: StandardConfig;
widget?: WidgetConfig;
graph?: GraphConfig;
standard?: StandardConfig;
metrics?: string[];
type?: string;
queryMetricType?: string;
@@ -30,8 +30,8 @@ export interface LayoutConfig {
}
export interface WidgetConfig {
title: string;
tips: string;
title?: string;
tips?: string;
}
export interface StandardConfig {
@@ -39,19 +39,18 @@ export interface StandardConfig {
unit?: string;
max?: string;
min?: string;
plus: string;
minus: string;
multiply: string;
divide: string;
milliseconds: string;
seconds: string;
plus?: string;
minus?: string;
multiply?: string;
divide?: string;
milliseconds?: string;
seconds?: string;
}
export type GraphConfig = BarConfig | LineConfig;
export interface BarConfig {
type?: string;
showBackground?: boolean;
barWidth?: number;
}
export interface LineConfig extends AreaConfig {
type?: string;