mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-15 09:48:43 +00:00
typed tabChild
This commit is contained in:
parent
0b7f177be0
commit
ae3a312538
@ -161,6 +161,10 @@ import Text from "./Text.vue";
|
|||||||
import Ebpf from "./Ebpf.vue";
|
import Ebpf from "./Ebpf.vue";
|
||||||
import { dragIgnoreFrom } from "../data";
|
import { dragIgnoreFrom } from "../data";
|
||||||
|
|
||||||
|
interface TabChild {
|
||||||
|
name: string;
|
||||||
|
children: LayoutConfig[];
|
||||||
|
}
|
||||||
const props = {
|
const props = {
|
||||||
data: {
|
data: {
|
||||||
type: Object as PropType<LayoutConfig>,
|
type: Object as PropType<LayoutConfig>,
|
||||||
@ -257,7 +261,7 @@ export default defineComponent({
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
function clickTabs(e: Event, idx: number, extra: any) {
|
function clickTabs(e: Event, idx: number, extra: TabChild) {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
activeTabIndex.value = idx;
|
activeTabIndex.value = idx;
|
||||||
dashboardStore.activeGridItem(props.data.i);
|
dashboardStore.activeGridItem(props.data.i);
|
||||||
|
Loading…
Reference in New Issue
Block a user