From e3f71aed412103eeadbd1e8c9856fd8156fa5913 Mon Sep 17 00:00:00 2001 From: yuantao Date: Mon, 27 Oct 2025 11:30:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=5FModal=5F=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E8=BE=93=E5=85=A5=E6=A1=86=E7=84=A6=E7=82=B9=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E9=97=AE=E9=A2=98=E5=B9=B6=E9=87=8D=E6=9E=84=E5=BC=B9=E6=A1=86?= =?UTF-8?q?=E5=AE=9E=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 1 + src/App.vue | 9 +- src/components/FolderManage.vue | 264 ++++++++------------------------ src/components/Modal.vue | 112 ++++++++++---- src/utils/modalService.js | 113 ++++++++++++++ 5 files changed, 265 insertions(+), 234 deletions(-) create mode 100644 src/utils/modalService.js diff --git a/index.html b/index.html index 94d37f6..26d14dc 100644 --- a/index.html +++ b/index.html @@ -91,6 +91,7 @@ --confirmFontSize: 0.8rem; --confirmBg: rgba(0, 0, 0, 0.15); + --confirmBtnColor: #000000cc; } body { diff --git a/src/App.vue b/src/App.vue index 4688d9e..c735b4f 100644 --- a/src/App.vue +++ b/src/App.vue @@ -16,8 +16,6 @@ - - @@ -25,7 +23,7 @@ import { ref, watch, computed, onMounted } from 'vue' import { useRoute } from 'vue-router' import '@/common/base.css' -import Modal from '@/components/Modal.vue' +import { initModalService } from '@/utils/modalService' // 导入页面组件 import NoteListPage from './pages/NoteListPage.vue' @@ -73,6 +71,11 @@ watch( } } ) + +// 初始化弹框服务 +onMounted(() => { + initModalService() +}) diff --git a/src/components/Modal.vue b/src/components/Modal.vue index 5ee95b8..13fcb10 100644 --- a/src/components/Modal.vue +++ b/src/components/Modal.vue @@ -1,18 +1,21 @@