From 1595c0c70e1d08f567129fce17213135928ec87c Mon Sep 17 00:00:00 2001 From: pipipi-pikachu Date: Tue, 5 Sep 2023 20:10:00 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=94=AF=E6=8C=81=E6=9F=A5=E6=89=BE/?= =?UTF-8?q?=E6=9B=BF=E6=8D=A2=EF=BC=88#201=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 1 + src/App.vue | 1 - src/assets/styles/global.scss | 5 + src/components/MoveablePanel.vue | 16 +- src/hooks/useGlobalHotkey.ts | 5 + src/hooks/useSearch.ts | 431 ++++++++++++++++++ src/plugins/icon.ts | 6 + src/store/main.ts | 6 + src/store/slides.ts | 7 +- src/utils/prosemirror/schema/marks.ts | 17 + src/views/Editor/CanvasTool/index.vue | 10 + src/views/Editor/SearchPanel.vue | 146 ++++++ src/views/Editor/index.vue | 4 +- .../components/element/TableElement/index.vue | 2 +- 14 files changed, 647 insertions(+), 10 deletions(-) create mode 100644 src/hooks/useSearch.ts create mode 100644 src/views/Editor/SearchPanel.vue diff --git a/README.md b/README.md index 0c317959..58fd67bb 100644 --- a/README.md +++ b/README.md @@ -66,6 +66,7 @@ npm run serve - 翻页动画 - 元素动画(入场、退场、强调) - 选择面板(隐藏元素、层级排序、元素命名) +- 查找/替换 ### 幻灯片元素编辑 - 元素添加、删除 - 元素复制粘贴 diff --git a/src/App.vue b/src/App.vue index 5c2d454e..0181a17d 100644 --- a/src/App.vue +++ b/src/App.vue @@ -6,7 +6,6 @@ colorText: '#41464b', borderRadius: 2, fontSize: 13, - lineHeight: 1.5715, }, }" > diff --git a/src/assets/styles/global.scss b/src/assets/styles/global.scss index 5c156ce7..7be371f9 100644 --- a/src/assets/styles/global.scss +++ b/src/assets/styles/global.scss @@ -75,6 +75,7 @@ table { a { text-decoration: none; + color: $themeColor; } img { @@ -88,6 +89,10 @@ hr { overflow: visible; } +mark.active { + background-color: #ff9632; +} + input, button, select, diff --git a/src/components/MoveablePanel.vue b/src/components/MoveablePanel.vue index 64f375ff..f705ff4a 100644 --- a/src/components/MoveablePanel.vue +++ b/src/components/MoveablePanel.vue @@ -1,9 +1,10 @@