mirror of
https://github.com/pipipi-pikachu/PPTist.git
synced 2025-04-15 02:20:00 +08:00
fix: 修复缩略图文字链接可点击的bug
This commit is contained in:
parent
4ddc99dce2
commit
650716a7ab
@ -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>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user