fix(数据大屏): 修复弹窗区过滤组件右键菜单偏移、时间过滤弹框编辑时不显示、控制台异常等问题

This commit is contained in:
wangjiahao
2025-02-21 13:40:32 +08:00
committed by 王嘉豪
parent e317d1581f
commit 6acb8b4782
3 changed files with 6 additions and 4 deletions

View File

@@ -554,7 +554,11 @@ const handleContextMenu = e => {
// 组件处于编辑状态的时候 如富文本 不弹出右键菜单
if (!curComponent.value || (curComponent.value && !curComponent.value.editing)) {
if (curComponent.value && ['VQuery'].includes(curComponent.value.component)) {
if (
curComponent.value &&
['VQuery'].includes(curComponent.value.component) &&
curComponent?.value['category'] === 'base'
) {
left = left * curBaseScale.value + 150
top = top * curBaseScale.value + curComponent.value.style.top * (1 - curBaseScale.value)
}

View File

@@ -181,8 +181,6 @@ onMounted(() => {
})
const onClick = e => {
e.preventDefault()
e.stopPropagation()
// 将当前点击组件的事件传播出去
eventBus.emit('componentClick')
dvMainStore.setInEditorStatus(true)

View File

@@ -97,7 +97,7 @@ const storeCacheProxy = byteArray => {
}
const pluginProxy = ref(null)
const invokeMethod = param => {
if (pluginProxy.value['invokeMethod']) {
if (pluginProxy.value && pluginProxy.value['invokeMethod']) {
pluginProxy.value['invokeMethod'](param)
} else if (param.methodName && pluginProxy.value[param.methodName]) {
pluginProxy.value[param.methodName](param.args)