From cc36ca7ac4a6c74946453e946ba2a7a131ab4307 Mon Sep 17 00:00:00 2001 From: Zhilin Liu Date: Tue, 16 Jan 2024 12:42:40 +0800 Subject: [PATCH] feat: block change sync to SlideList (#72) --- src/UserInterface/Slide/Slide.vue | 40 +++++++++++----------- src/UserInterface/Slide/SlideContainer.vue | 28 ++++++++------- src/UserInterface/SlideList/SlideList.vue | 15 ++------ 3 files changed, 37 insertions(+), 46 deletions(-) diff --git a/src/UserInterface/Slide/Slide.vue b/src/UserInterface/Slide/Slide.vue index 940d044..1ee6230 100644 --- a/src/UserInterface/Slide/Slide.vue +++ b/src/UserInterface/Slide/Slide.vue @@ -1,31 +1,36 @@ @@ -77,7 +76,10 @@ const handleMouseUp = () => { class="slide-container relative flex items-center justify-center flex-auto bg-secondary" @mousedown.self="handleMouseDown" > - +
+ +
+
import { ref, shallowRef } from 'vue' import { slideManager } from '@Kernel/index' -import { BlockViews } from '@BlockHub/BlockHub' -import { DEFAULT_SLIDE_WIDTH, DEFAULT_SLIDE_HEIGHT } from '@Const/slide' +import Slide from '../Slide/Slide.vue' const currentIndex = ref(slideManager.currentIndex) const slides = shallowRef(slideManager.slides) @@ -68,17 +67,7 @@ const onDrop = () => { @dragover.prevent="onDragOver($event, index)" @drop="onDrop" > -
- -
+