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