mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-10-14 11:21:29 +00:00
fix: update types
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user