Merge pull request #13447 from dataease/pr@dev-v2@refactor_pictrue

refactor(图表): 图片组件优化,修改未设置事件时鼠标样式 #12685
This commit is contained in:
王嘉豪 2024-11-20 19:02:40 +08:00 committed by GitHub
commit a056347457
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,5 +1,5 @@
<template>
<div class="pic-main" @click="onPictureClick">
<div class="pic-main">
<img
draggable="false"
v-if="propValue['url']"
@ -55,16 +55,6 @@ const imageAdapter = computed(() => {
}
return style as CSSProperties
})
const onPictureClick = e => {
if (element.value.events && element.value.events.checked) {
if (element.value.events.type === 'displayChange') {
//
nextTick(() => {
dvMainStore.popAreaActiveSwitch()
})
}
}
}
const uploadImg = () => {
nextTick(() => {
eventBus.emit('uploadImg')
@ -77,7 +67,6 @@ const uploadImg = () => {
overflow: hidden;
width: 100%;
height: 100%;
cursor: pointer;
}
.pic-upload {
display: flex;