feat: update config

This commit is contained in:
Qiuxia Fan
2022-01-12 11:44:54 +08:00
parent 7d1abb3421
commit ad1e500c54
11 changed files with 130 additions and 66 deletions

View File

@@ -30,14 +30,8 @@ export interface LayoutConfig {
}
export interface WidgetConfig {
title?: string;
tips?: string;
}
export interface GraphConfig {
type?: string;
showBackground?: boolean;
barWidth?: number;
title: string;
tips: string;
}
export interface StandardConfig {
@@ -46,3 +40,15 @@ export interface StandardConfig {
max?: string;
min?: string;
}
export type GraphConfig = BarConfig | LineConfig;
interface BarConfig {
type?: string;
showBackground?: boolean;
barWidth?: number;
}
interface LineConfig {
type?: string;
showBackground?: boolean;
barWidth?: number;
}