diff --git a/core/core-frontend/src/components/data-visualization/canvas/ComponentWrapper.vue b/core/core-frontend/src/components/data-visualization/canvas/ComponentWrapper.vue index b714f5c37e..2e940cdeac 100644 --- a/core/core-frontend/src/components/data-visualization/canvas/ComponentWrapper.vue +++ b/core/core-frontend/src/components/data-visualization/canvas/ComponentWrapper.vue @@ -16,7 +16,9 @@ import { isDashboard, isMainCanvas } from '@/utils/canvasUtils' import { XpackComponent } from '@/components/plugin' import { useAppStoreWithOut } from '@/store/modules/app' import DePreviewPopDialog from '@/components/visualization/DePreviewPopDialog.vue' +import Icon from '../../icon-custom/src/Icon.vue' const appStore = useAppStoreWithOut() +import replaceOutlined from '@/assets/svg/icon_replace_outlined.svg' const componentWrapperInnerRef = ref(null) const componentEditBarRef = ref(null) @@ -168,14 +170,14 @@ const handleInnerMouseDown = e => { // do setCurComponent if (showPosition.value.includes('multiplexing')) { componentEditBarRef.value.multiplexingCheckOut() - e.stopPropagation() - e.preventDefault() + e?.stopPropagation() + e?.preventDefault() } if (['popEdit', 'preview'].includes(showPosition.value) || dvMainStore.mobileInPc) { onClick(e) if (e.target?.className?.includes('ed-input__inner')) return - e.stopPropagation() - e.preventDefault() + e?.stopPropagation() + e?.preventDefault() } } @@ -384,6 +386,21 @@ const commonParams = computed(() => { eventType: config.value.events.type } }) + +const showCheck = computed(() => { + return dvMainStore.mobileInPc && showPosition.value === 'edit' +}) + +const updateFromMobile = (e, type) => { + if (type === 'syncPcDesign') { + e.preventDefault() + e.stopPropagation() + } + useEmitt().emitter.emit('onMobileStatusChange', { + type: type, + value: config.value.id + }) +}