Commit d58634e8 authored by 罗超's avatar 罗超

修复预览模式下文字无阴影问题

parent 0ca84d75
......@@ -55,13 +55,16 @@
<script lang="ts" setup>
import { computed, onMounted, onUnmounted, ref, watch } from 'vue'
import type { PPTTextElement } from '@/types/slides'
import useElementShadow from '@/views/components/element/hooks/useElementShadow'
import ProsemirrorEditor from '@/views/components/element/ProsemirrorEditor.vue'
const props = defineProps<{
elementInfo: PPTTextElement
}>()
const shadow = computed(() => props.elementInfo.shadow)
const { shadowStyle } = useElementShadow(shadow)
</script>
<style lang="scss" scoped>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment