fix: 音视频元素添加动画后放映异常(#227)

This commit is contained in:
pipipi-pikachu 2023-10-28 12:54:49 +08:00
parent 5a0f3ee81c
commit fc5a3024a6
4 changed files with 4 additions and 17 deletions

View File

@ -29,7 +29,7 @@ import BaseImageElement from '@/views/components/element/ImageElement/BaseImageE
import BaseTextElement from '@/views/components/element/TextElement/BaseTextElement.vue'
import BaseShapeElement from '@/views/components/element/ShapeElement/BaseShapeElement.vue'
import BaseLineElement from '@/views/components/element/LineElement/BaseLineElement.vue'
import ScreenChartElement from '@/views/components/element/ChartElement/ScreenChartElement.vue'
import BaseChartElement from '@/views/components/element/ChartElement/BaseChartElement.vue'
import BaseTableElement from '@/views/components/element/TableElement/BaseTableElement.vue'
import BaseLatexElement from '@/views/components/element/LatexElement/BaseLatexElement.vue'
import ScreenVideoElement from '@/views/components/element/VideoElement/ScreenVideoElement.vue'
@ -49,7 +49,7 @@ const currentElementComponent = computed<unknown>(() => {
[ElementTypes.TEXT]: BaseTextElement,
[ElementTypes.SHAPE]: BaseShapeElement,
[ElementTypes.LINE]: BaseLineElement,
[ElementTypes.CHART]: ScreenChartElement,
[ElementTypes.CHART]: BaseChartElement,
[ElementTypes.TABLE]: BaseTableElement,
[ElementTypes.LATEX]: BaseLatexElement,
[ElementTypes.VIDEO]: ScreenVideoElement,

View File

@ -1,5 +1,5 @@
<template>
<div class="screen-element-audio"
<div class="base-element-audio screen-element-audio"
:style="{
top: elementInfo.top + 'px',
left: elementInfo.left + 'px',

View File

@ -1,13 +0,0 @@
<template>
<BaseChartElement class="screen-element-chart" :elementInfo="elementInfo" />
</template>
<script lang="ts" setup>
import type { PPTChartElement } from '@/types/slides'
import BaseChartElement from './BaseChartElement.vue'
defineProps<{
elementInfo: PPTChartElement
}>()
</script>

View File

@ -1,5 +1,5 @@
<template>
<div class="screen-element-video"
<div class="base-element-video screen-element-video"
:style="{
top: elementInfo.top + 'px',
left: elementInfo.left + 'px',