forked from github/dataease
Merge pull request #10086 from dataease/pr@dev-v2@fix_batch3
fix(数据大屏): 修复部分多选无法选中问题
This commit is contained in:
commit
3885e9b9b6
@ -1380,6 +1380,11 @@ const groupAreaClickChange = async () => {
|
||||
groupAreaCom.style.top = areaData.value.style.top
|
||||
groupAreaCom.style.width = areaData.value.style.width
|
||||
groupAreaCom.style.height = areaData.value.style.height
|
||||
dvMainStore.setClickComponentStatus(true)
|
||||
dvMainStore.setCurComponent({
|
||||
component: groupAreaCom,
|
||||
index: dvMainStore.componentData.length - 1
|
||||
})
|
||||
} else if (groupAreaCom) {
|
||||
groupAreaHis.forEach(ele => {
|
||||
dvMainStore.deleteComponentById(ele.id)
|
||||
|
@ -37,7 +37,7 @@ const handleMouseDown = e => {
|
||||
return
|
||||
}
|
||||
const index = areaData.value.components.findIndex(component => component === props.element)
|
||||
if (index != -1) {
|
||||
if (index != -1 && props.element.component !== 'GroupArea') {
|
||||
areaData.value.components.splice(index, 1)
|
||||
e.stopPropagation()
|
||||
}
|
||||
|
@ -424,7 +424,6 @@ const handleInnerMouseDownOnShape = e => {
|
||||
if (curComponent.value && curComponent.value.id !== element.value.id) {
|
||||
areaDataPush(curComponent.value)
|
||||
}
|
||||
dvMainStore.setCurComponent({ component: null, index: null })
|
||||
e.stopPropagation()
|
||||
return
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user