This commit is contained in:
Fine 2022-10-20 16:33:19 +08:00
parent 3604c5bc10
commit 1ead82bc12
2 changed files with 16 additions and 20 deletions

View File

@ -24,7 +24,12 @@ limitations under the License. -->
<script lang="ts" setup> <script lang="ts" setup>
import type { PropType } from "vue"; import type { PropType } from "vue";
import Line from "./Line.vue"; import Line from "./Line.vue";
import { AreaConfig, EventParams } from "@/types/dashboard"; import {
AreaConfig,
EventParams,
RelatedTrace,
Filters,
} from "@/types/dashboard";
/*global defineProps, defineEmits */ /*global defineProps, defineEmits */
const emits = defineEmits(["click"]); const emits = defineEmits(["click"]);
@ -37,15 +42,8 @@ defineProps({
config: { config: {
type: Object as PropType< type: Object as PropType<
AreaConfig & { AreaConfig & {
filters: { filters: Filters;
sourceId: string; relatedTrace: RelatedTrace;
duration: {
startTime: string;
endTime: string;
};
isRange: boolean;
dataIndex?: number;
};
} & { id: string } } & { id: string }
>, >,
default: () => ({}), default: () => ({}),

View File

@ -18,7 +18,12 @@ limitations under the License. -->
<script lang="ts" setup> <script lang="ts" setup>
import { computed } from "vue"; import { computed } from "vue";
import type { PropType } from "vue"; import type { PropType } from "vue";
import { BarConfig, EventParams } from "@/types/dashboard"; import {
BarConfig,
EventParams,
RelatedTrace,
Filters,
} from "@/types/dashboard";
/*global defineProps, defineEmits */ /*global defineProps, defineEmits */
const emits = defineEmits(["click"]); const emits = defineEmits(["click"]);
@ -32,15 +37,8 @@ const props = defineProps({
config: { config: {
type: Object as PropType< type: Object as PropType<
BarConfig & { BarConfig & {
filters: { filters: Filters;
sourceId: string; relatedTrace: RelatedTrace;
duration: {
startTime: string;
endTime: string;
};
isRange: boolean;
dataIndex?: number;
};
} & { id: string } } & { id: string }
>, >,
default: () => ({}), default: () => ({}),