From 4b3d261ecb674f4733a36d0a1923b06d49c21cc8 Mon Sep 17 00:00:00 2001 From: Libin YANG Date: Tue, 20 Aug 2024 19:52:21 +0800 Subject: [PATCH] feat: update dialog (#334) --- .../EditorHeader/AboutDialog.vue | 28 ++++++++++--------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/src/components/CodemirrorEditor/EditorHeader/AboutDialog.vue b/src/components/CodemirrorEditor/EditorHeader/AboutDialog.vue index fefdbc3..c3c4fac 100644 --- a/src/components/CodemirrorEditor/EditorHeader/AboutDialog.vue +++ b/src/components/CodemirrorEditor/EditorHeader/AboutDialog.vue @@ -6,10 +6,16 @@ const props = defineProps({ }, }) -defineEmits([`close`]) +const emit = defineEmits([`close`]) + +const links = [ + { label: `GitHub 仓库`, url: `https://github.com/doocs/md` }, + { label: `Gitee 仓库`, url: `https://gitee.com/doocs/md` }, + { label: `GitCode 仓库`, url: `https://gitcode.com/doocs/md` }, +] function onRedirect(url) { - window.open(url) + window.open(url, `_blank`) } @@ -18,9 +24,9 @@ function onRedirect(url) { title="关于" class="about__dialog" :model-value="props.visible" - width="380" + width="520" center - @close="$emit('close')" + @close="emit('close')" >

一款高度简洁的微信 Markdown 编辑器

@@ -28,23 +34,19 @@ function onRedirect(url) { Doocs Markdown 编辑器