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