refactor(数据大屏): 多选支持选中分组

This commit is contained in:
wangjiahao 2024-08-28 14:32:06 +08:00
parent 716cefa6a4
commit 28e9129fe1
2 changed files with 3 additions and 3 deletions

View File

@ -39,7 +39,7 @@ const areaDataPush = component => {
component.isShow &&
component.canvasId === 'canvas-main' &&
component.category !== 'hidden' &&
!['Group', 'GroupArea', 'DeTabs'].includes(component.component)
!['GroupArea', 'DeTabs'].includes(component.component)
) {
areaData.value.components.push(component)
}
@ -75,7 +75,7 @@ const shiftDataPush = curClickIndex => {
!component.isLock &&
component.isShow &&
component.category !== 'hidden' &&
!['Group', 'GroupArea', 'DeTabs'].includes(component.component)
!['GroupArea', 'DeTabs'].includes(component.component)
)
areaData.value.components.push(...shiftAreaComponents)
dvMainStore.setCurComponent({ component: null, index: null })

View File

@ -431,7 +431,7 @@ const areaDataPush = component => {
!component.isLock &&
component.isShow &&
component.canvasId === 'canvas-main' &&
!['Group', 'GroupArea', 'DeTabs'].includes(component.component)
!['GroupArea', 'DeTabs'].includes(component.component)
) {
areaData.value.components.push(component)
}