mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-10-15 12:49:17 +00:00
feat: active widget on the tab
This commit is contained in:
@@ -105,9 +105,13 @@ export const dashboardStore = defineStore({
|
||||
this.layout[idx].children?.push(i);
|
||||
},
|
||||
addTabWidget(tabIndex: number) {
|
||||
const activedGridItem = this.activedGridItem.split("-")[0];
|
||||
const idx = this.layout.findIndex(
|
||||
(d: LayoutConfig) => d.i === this.activedGridItem
|
||||
(d: LayoutConfig) => d.i === activedGridItem
|
||||
);
|
||||
if (idx < 0) {
|
||||
return;
|
||||
}
|
||||
const { children } = this.layout[idx].children[tabIndex];
|
||||
const newWidget = {
|
||||
x: 0,
|
||||
|
Reference in New Issue
Block a user