Merge pull request #13447 from dataease/pr@dev-v2@refactor_pictrue
refactor(图表): 图片组件优化,修改未设置事件时鼠标样式 #12685
This commit is contained in:
commit
a056347457
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user