From 0fcaf3f3e741e5bafc9f428c8da103c129ab739b Mon Sep 17 00:00:00 2001 From: zdg Date: Fri, 1 Nov 2024 12:54:01 +0800 Subject: [PATCH] =?UTF-8?q?ppt=20=E4=B8=8A=E8=AF=BE=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/tool/components/homework.vue | 2 +- .../src/views/tool/components/side.vue | 8 ++- src/renderer/src/views/tool/sphere.vue | 54 ++++++++++--------- 3 files changed, 37 insertions(+), 27 deletions(-) diff --git a/src/renderer/src/views/tool/components/homework.vue b/src/renderer/src/views/tool/components/homework.vue index 04505d2..a2b46dc 100644 --- a/src/renderer/src/views/tool/components/homework.vue +++ b/src/renderer/src/views/tool/components/homework.vue @@ -129,7 +129,7 @@ const sendHomework = (row,type) => { } // const closeHomework = async() => { - ipcMsgSend('tool-sphere:set:ignore', true) + // ipcMsgSend('tool-sphere:set:ignore', true) } diff --git a/src/renderer/src/views/tool/components/side.vue b/src/renderer/src/views/tool/components/side.vue index fe9d186..3ed4709 100644 --- a/src/renderer/src/views/tool/components/side.vue +++ b/src/renderer/src/views/tool/components/side.vue @@ -74,6 +74,7 @@ const list = computed(() => props.data.map((o,i) => { onMounted(() => { posBtnAll = btnRef.value.getBoundingClientRect() hPost.value = Math.round(posBtnAll.height) + // btnRef.value.style.marginTop = -hPost.value / 2 + 'px' curNode = sessionStore?.get?.('subject.curNode') }) // === 方法 === @@ -101,7 +102,10 @@ const clickHandel = (o, e) => { emit('change', o) } const closeActive = () =>{ - isVisible.value = false + if (isVisible.value) { // 打开状态,关闭 + isVisible.value = false + emit('change', { prop: 'close' }) + } } defineExpose({closeActive}) @@ -111,8 +115,8 @@ defineExpose({closeActive}) position: fixed; top: 50%; transform: translateY(-50%); + z-index: 1; right: 10px; - //min-height: 40vh; min-width: 4em; border-radius: 4em; background-color: rgba(18,18,18,0.3); diff --git a/src/renderer/src/views/tool/sphere.vue b/src/renderer/src/views/tool/sphere.vue index 96a2996..ab4708b 100644 --- a/src/renderer/src/views/tool/sphere.vue +++ b/src/renderer/src/views/tool/sphere.vue @@ -1,5 +1,7 @@