fix: 修复缩略图文字链接可点击的bug

This commit is contained in:
pipipi-pikachu 2024-03-24 14:37:57 +08:00
parent 4ddc99dce2
commit 650716a7ab

View File

@ -34,6 +34,7 @@
/>
<div
class="text ProseMirror-static"
:class="{ 'thumbnail': target === 'thumbnail' }"
:style="{
'--paragraphSpace': `${elementInfo.paragraphSpace === undefined ? 5 : elementInfo.paragraphSpace}px`,
}"
@ -53,6 +54,7 @@ import useElementShadow from '@/views/components/element/hooks/useElementShadow'
const props = defineProps<{
elementInfo: PPTTextElement
target?: string
}>()
const shadow = computed(() => props.elementInfo.shadow)
@ -75,6 +77,10 @@ const { shadowStyle } = useElementShadow(shadow)
.text {
position: relative;
&.thumbnail {
pointer-events: none;
}
}
}
</style>