refactor: optimize data types for widgets and dashboards (#490)

This commit is contained in:
Fine0830
2025-08-14 18:25:40 +08:00
committed by GitHub
parent e885b61353
commit 54a700bf19
141 changed files with 972 additions and 743 deletions

View File

@@ -24,11 +24,12 @@ limitations under the License. -->
<script lang="ts" setup>
import type { PropType } from "vue";
import type { Span } from "@/types/trace";
import type { SegmentSpan } from "@/types/profile";
import Graph from "./D3Graph/Index.vue";
import { TraceGraphType } from "./constant";
defineProps({
data: { type: Array as PropType<Span[]>, default: () => [] },
data: { type: Array as PropType<(Span | SegmentSpan)[]>, default: () => [] },
traceId: { type: String, default: "" },
headerType: { type: String, default: "" },
});