From 71b95dd3a8e38a0fb82bf1cbf755175fed0527fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?wifi=E6=AD=AAf?= <1402772884@qq.com> Date: Tue, 4 Feb 2025 13:13:11 +0800 Subject: [PATCH] =?UTF-8?q?feat(mini-markdown-editor):=20=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0icon?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/mini-markdown-editor/src/assets/images/save.svg | 1 + packages/mini-markdown-editor/src/common/help.ts | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 packages/mini-markdown-editor/src/assets/images/save.svg diff --git a/packages/mini-markdown-editor/src/assets/images/save.svg b/packages/mini-markdown-editor/src/assets/images/save.svg new file mode 100644 index 0000000..37ff913 --- /dev/null +++ b/packages/mini-markdown-editor/src/assets/images/save.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/packages/mini-markdown-editor/src/common/help.ts b/packages/mini-markdown-editor/src/common/help.ts index 406038c..5e83452 100644 --- a/packages/mini-markdown-editor/src/common/help.ts +++ b/packages/mini-markdown-editor/src/common/help.ts @@ -17,6 +17,7 @@ import Redo from "@/assets/images/redo.svg?raw"; import Image from "@/assets/images/image.svg?raw"; import ThematicBreak from "@/assets/images/thematic-break.svg?raw"; import FullScreenIcon from "@/assets/images/fullscreen.svg?raw"; +import SaveIcon from "@/assets/images/save.svg?raw"; import { Hotkey } from "./hotkeys"; @@ -188,7 +189,7 @@ export const shortcuts = [ }, { title: "保存", - icon: "", + icon: SaveIcon, rule: Hotkey.SAVE.helpCommand, }, ]; -- Gitee