mirror of
https://github.com/dataease/dataease.git
synced 2026-05-23 13:58:26 +08:00
fix(数据大屏): 修复弹窗区过滤组件右键菜单偏移、时间过滤弹框编辑时不显示、控制台异常等问题
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
@@ -181,8 +181,6 @@ onMounted(() => {
|
||||
})
|
||||
|
||||
const onClick = e => {
|
||||
e.preventDefault()
|
||||
e.stopPropagation()
|
||||
// 将当前点击组件的事件传播出去
|
||||
eventBus.emit('componentClick')
|
||||
dvMainStore.setInEditorStatus(true)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user