mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-11 12:34:47 +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
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||||
* contributor license agreements. See the NOTICE file distributed with
|
* contributor license agreements. See the NOTICE file distributed with
|
||||||
|
@ -29,7 +29,8 @@ const props = defineProps({
|
|||||||
theme: { type: String, default: "dark" },
|
theme: { type: String, default: "dark" },
|
||||||
itemEvents: { type: Array as PropType<Event[]>, default: () => [] },
|
itemEvents: { type: Array as PropType<Event[]>, default: () => [] },
|
||||||
});
|
});
|
||||||
const chart = ref<any>(null);
|
/*global Nullable */
|
||||||
|
const chart = ref<Nullable<HTMLElement>>(null);
|
||||||
const option = computed(() => getOption());
|
const option = computed(() => getOption());
|
||||||
|
|
||||||
function getOption() {
|
function getOption() {
|
||||||
|
@ -33,7 +33,8 @@ const props = defineProps({
|
|||||||
default: () => ({}),
|
default: () => ({}),
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
const chart = ref<any>(null);
|
/*global Nullable */
|
||||||
|
const chart = ref<Nullable<HTMLElement>>(null);
|
||||||
const option = computed(() => getOption());
|
const option = computed(() => getOption());
|
||||||
function getOption() {
|
function getOption() {
|
||||||
const source = (props.data.nodes || []).map((d: number[]) => d[2]);
|
const source = (props.data.nodes || []).map((d: number[]) => d[2]);
|
||||||
|
@ -30,7 +30,8 @@ const props = defineProps({
|
|||||||
theme: { type: String, default: "dark" },
|
theme: { type: String, default: "dark" },
|
||||||
itemEvents: { type: Array as PropType<Event[]>, default: () => [] },
|
itemEvents: { type: Array as PropType<Event[]>, default: () => [] },
|
||||||
});
|
});
|
||||||
const chart = ref<any>(null);
|
/*global Nullable */
|
||||||
|
const chart = ref<Nullable<HTMLElement>>(null);
|
||||||
const option = computed(() => getOption());
|
const option = computed(() => getOption());
|
||||||
// function resize() {
|
// function resize() {
|
||||||
// chart.value.myChart.resize();
|
// chart.value.myChart.resize();
|
||||||
|
@ -26,7 +26,8 @@ const props = defineProps({
|
|||||||
},
|
},
|
||||||
theme: { type: String, default: "dark" },
|
theme: { type: String, default: "dark" },
|
||||||
});
|
});
|
||||||
const chart = ref<any>(null);
|
/*global Nullable */
|
||||||
|
const chart = ref<Nullable<HTMLElement>>(null);
|
||||||
const option = computed(() => getOption());
|
const option = computed(() => getOption());
|
||||||
function getOption() {
|
function getOption() {
|
||||||
return {
|
return {
|
||||||
|
Loading…
Reference in New Issue
Block a user