Skip to content

Commit 5c58226

Browse files
committed
fix: 修复切换数据时activePanel不对
1 parent 0815046 commit 5c58226

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/components/BootstrapBlazor.DockView/wwwroot/js/dockview-group.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ const addPanelWidthGroupId = (dockview, panel, index) => {
7676
dockview.addPanel({
7777
id: panel.id,
7878
title: panel.title,
79+
inactive: true,
7980
renderer: panel.renderer,
8081
component: panel.component,
8182
position: { referenceGroup: group, index: index || 0 },
@@ -112,6 +113,7 @@ const addPanelWidthCreatGroup = (dockview, panel, panels) => {
112113
let option = {
113114
id: panel.id,
114115
title: panel.title,
116+
inactive: true,
115117
renderer: panel.renderer,
116118
component: panel.component,
117119
position: { referenceGroup: group },

0 commit comments

Comments
 (0)