Skip to content

Commit

Permalink
fix: 修复缩略图文字链接可点击的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
pipipi-pikachu committed Mar 24, 2024
1 parent 4ddc99d commit 650716a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/views/components/element/TextElement/BaseTextElement.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
/>
<div
class="text ProseMirror-static"
:class="{ 'thumbnail': target === 'thumbnail' }"
:style="{
'--paragraphSpace': `${elementInfo.paragraphSpace === undefined ? 5 : elementInfo.paragraphSpace}px`,
}"
Expand All @@ -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)
Expand All @@ -75,6 +77,10 @@ const { shadowStyle } = useElementShadow(shadow)
.text {
position: relative;
&.thumbnail {
pointer-events: none;
}
}
}
</style>

0 comments on commit 650716a

Please sign in to comment.