fix prop types

This commit is contained in:
Qiuxia Fan 2022-07-18 17:38:21 +08:00
parent 3ffc491f2e
commit 635f579f52
3 changed files with 21 additions and 5 deletions

View File

@ -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 = {

View File

@ -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 }
>, >,

View File

@ -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 }
>, >,