mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-07 10:42:56 +00:00
fix: update types
This commit is contained in:
parent
0f09e4b0f7
commit
32232e6f47
@ -1,5 +1,3 @@
|
||||
import { string } from "vue-types";
|
||||
|
||||
/**
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
|
@ -29,7 +29,8 @@ const props = defineProps({
|
||||
theme: { type: String, default: "dark" },
|
||||
itemEvents: { type: Array as PropType<Event[]>, default: () => [] },
|
||||
});
|
||||
const chart = ref<any>(null);
|
||||
/*global Nullable */
|
||||
const chart = ref<Nullable<HTMLElement>>(null);
|
||||
const option = computed(() => getOption());
|
||||
|
||||
function getOption() {
|
||||
|
@ -33,7 +33,8 @@ const props = defineProps({
|
||||
default: () => ({}),
|
||||
},
|
||||
});
|
||||
const chart = ref<any>(null);
|
||||
/*global Nullable */
|
||||
const chart = ref<Nullable<HTMLElement>>(null);
|
||||
const option = computed(() => getOption());
|
||||
function getOption() {
|
||||
const source = (props.data.nodes || []).map((d: number[]) => d[2]);
|
||||
|
@ -30,7 +30,8 @@ const props = defineProps({
|
||||
theme: { type: String, default: "dark" },
|
||||
itemEvents: { type: Array as PropType<Event[]>, default: () => [] },
|
||||
});
|
||||
const chart = ref<any>(null);
|
||||
/*global Nullable */
|
||||
const chart = ref<Nullable<HTMLElement>>(null);
|
||||
const option = computed(() => getOption());
|
||||
// function resize() {
|
||||
// chart.value.myChart.resize();
|
||||
|
@ -26,7 +26,8 @@ const props = defineProps({
|
||||
},
|
||||
theme: { type: String, default: "dark" },
|
||||
});
|
||||
const chart = ref<any>(null);
|
||||
/*global Nullable */
|
||||
const chart = ref<Nullable<HTMLElement>>(null);
|
||||
const option = computed(() => getOption());
|
||||
function getOption() {
|
||||
return {
|
||||
|
Loading…
Reference in New Issue
Block a user