mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-10-14 20:01:28 +00:00
fix prop types
This commit is contained in:
10
src/types/dashboard.d.ts
vendored
10
src/types/dashboard.d.ts
vendored
@@ -39,7 +39,15 @@ export interface LayoutConfig {
|
|||||||
id?: string;
|
id?: string;
|
||||||
associate?: { widgetId: string }[];
|
associate?: { widgetId: string }[];
|
||||||
eventAssociate?: boolean;
|
eventAssociate?: boolean;
|
||||||
filters?: { dataIndex: number; sourceId: string; isRange?: boolean };
|
filters?: {
|
||||||
|
dataIndex: number;
|
||||||
|
sourceId: string;
|
||||||
|
isRange?: boolean;
|
||||||
|
duration?: {
|
||||||
|
startTime: string;
|
||||||
|
endTime: string;
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export type MetricConfigOpt = {
|
export type MetricConfigOpt = {
|
||||||
|
@@ -38,9 +38,13 @@ defineProps({
|
|||||||
type: Object as PropType<
|
type: Object as PropType<
|
||||||
AreaConfig & {
|
AreaConfig & {
|
||||||
filters: {
|
filters: {
|
||||||
value: number | string;
|
|
||||||
dataIndex: number;
|
|
||||||
sourceId: string;
|
sourceId: string;
|
||||||
|
duration: {
|
||||||
|
startTime: string;
|
||||||
|
endTime: string;
|
||||||
|
};
|
||||||
|
isRange: boolean;
|
||||||
|
dataIndex?: number;
|
||||||
};
|
};
|
||||||
} & { id: string }
|
} & { id: string }
|
||||||
>,
|
>,
|
||||||
|
@@ -33,9 +33,13 @@ const props = defineProps({
|
|||||||
type: Object as PropType<
|
type: Object as PropType<
|
||||||
BarConfig & {
|
BarConfig & {
|
||||||
filters: {
|
filters: {
|
||||||
value: number | string;
|
|
||||||
dataIndex: number;
|
|
||||||
sourceId: string;
|
sourceId: string;
|
||||||
|
duration: {
|
||||||
|
startTime: string;
|
||||||
|
endTime: string;
|
||||||
|
};
|
||||||
|
isRange: boolean;
|
||||||
|
dataIndex?: number;
|
||||||
};
|
};
|
||||||
} & { id: string }
|
} & { id: string }
|
||||||
>,
|
>,
|
||||||
|
Reference in New Issue
Block a user