mirror of
https://github.com/pipipi-pikachu/PPTist.git
synced 2025-04-15 02:20:00 +08:00
fix: 修复缩略图页面缩放比例传值错误
This commit is contained in:
parent
1cfd878f7a
commit
405fd8cd57
@ -49,7 +49,6 @@ import { storeToRefs } from 'pinia'
|
||||
import { useMainStore, useSlidesStore, useKeyboardStore } from '@/store'
|
||||
import { fillDigit } from '@/utils/common'
|
||||
import { ContextmenuItem } from '@/components/Contextmenu/types'
|
||||
import { VIEWPORT_SIZE } from '@/configs/canvas'
|
||||
import useSlideHandler from '@/hooks/useSlideHandler'
|
||||
import useScreening from '@/hooks/useScreening'
|
||||
import useLoadSlides from '@/hooks/useLoadSlides'
|
||||
@ -79,9 +78,6 @@ export default defineComponent({
|
||||
|
||||
const presetLayoutPopoverVisible = ref(false)
|
||||
|
||||
const scale = computed(() => 120 / VIEWPORT_SIZE)
|
||||
provide('slideScale', scale)
|
||||
|
||||
const {
|
||||
copySlide,
|
||||
pasteSlide,
|
||||
|
@ -27,7 +27,7 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { computed, PropType, defineComponent } from 'vue'
|
||||
import { computed, PropType, defineComponent, provide } from 'vue'
|
||||
import { storeToRefs } from 'pinia'
|
||||
import { useSlidesStore } from '@/store'
|
||||
import { Slide } from '@/types/slides'
|
||||
@ -62,6 +62,7 @@ export default defineComponent({
|
||||
const { backgroundStyle } = useSlideBackgroundStyle(background)
|
||||
|
||||
const scale = computed(() => props.size / VIEWPORT_SIZE)
|
||||
provide('slideScale', scale)
|
||||
|
||||
return {
|
||||
scale,
|
||||
|
Loading…
x
Reference in New Issue
Block a user