mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-12 15:52:57 +00:00
fix: update
This commit is contained in:
parent
562737432e
commit
5f91852f0c
@ -166,7 +166,6 @@ limitations under the License. -->
|
|||||||
queryExpressions();
|
queryExpressions();
|
||||||
|
|
||||||
function clickTabs(e: Event, idx: number) {
|
function clickTabs(e: Event, idx: number) {
|
||||||
console.log(idx);
|
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
activeTabIndex.value = idx;
|
activeTabIndex.value = idx;
|
||||||
dashboardStore.activeGridItem(props.data.i);
|
dashboardStore.activeGridItem(props.data.i);
|
||||||
@ -272,7 +271,7 @@ limitations under the License. -->
|
|||||||
}
|
}
|
||||||
|
|
||||||
dashboardStore.setConfigs(tabsProps);
|
dashboardStore.setConfigs(tabsProps);
|
||||||
if ((props.data.children || [])[activeTabIndex.value]?.enable === false) {
|
if (((props.data.children || [])[activeTabIndex.value] || {}).enable === false) {
|
||||||
const index = (props.data.children || []).findIndex((tab: any) => tab.enable !== false) || 0;
|
const index = (props.data.children || []).findIndex((tab: any) => tab.enable !== false) || 0;
|
||||||
const items = ((props.data.children || [])[index] || {}).children;
|
const items = ((props.data.children || [])[index] || {}).children;
|
||||||
dashboardStore.setCurrentTabItems(items || []);
|
dashboardStore.setCurrentTabItems(items || []);
|
||||||
|
@ -60,8 +60,9 @@ limitations under the License. -->
|
|||||||
dashboardStore.selectWidget(item);
|
dashboardStore.selectWidget(item);
|
||||||
if (
|
if (
|
||||||
item.type === "Tab" &&
|
item.type === "Tab" &&
|
||||||
(event.target as HTMLDivElement)?.className !== "tab-layout" &&
|
!["operations", "tab-layout"].includes((event.target as HTMLDivElement)?.className) &&
|
||||||
(event.target as HTMLDivElement)?.classList[2] !== "icon-tool"
|
(event.target as HTMLDivElement)?.classList[2] !== "icon-tool" &&
|
||||||
|
(event.target as HTMLDivElement)?.nodeName !== "use"
|
||||||
) {
|
) {
|
||||||
dashboardStore.setActiveTabIndex(0);
|
dashboardStore.setActiveTabIndex(0);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user