mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-07-13 23:45:24 +00:00
fix prop types
This commit is contained in:
parent
3ffc491f2e
commit
635f579f52
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 }
|
||||||
>,
|
>,
|
||||||
|
Loading…
Reference in New Issue
Block a user