From d786012bbfbcbbb5f2919f4d522a57d51b3474b8 Mon Sep 17 00:00:00 2001 From: Ryan Wang Date: Thu, 27 Jan 2022 15:56:27 +0800 Subject: [PATCH] refactor: use the a-button component instead of the link button (halo-dev/console#423) Signed-off-by: Ryan Wang --- .../Attachment/AttachmentDetailModal.vue | 17 +- src/components/Input/AttachmentInput.vue | 8 +- src/components/Post/MetaEditor.vue | 28 ++- src/components/Tools/Logo.vue | 9 +- src/styles/global.less | 8 - src/views/comment/components/CommentTab.vue | 63 +++--- .../comment/components/TargetCommentTree.vue | 16 +- src/views/dashboard/Dashboard.vue | 47 +++-- .../components/MenuInternalLinkSelector.vue | 66 +++---- .../interface/components/MenuTreeNode.vue | 8 +- src/views/post/CategoryList.vue | 11 +- src/views/post/PostList.vue | 179 ++++++++++-------- .../sheet/components/CustomSheetList.vue | 103 +++++----- .../sheet/components/IndependentSheetList.vue | 6 +- src/views/sheet/independent/JournalList.vue | 40 ++-- src/views/sheet/independent/LinkList.vue | 10 +- src/views/system/About.vue | 6 +- .../system/developer/tabs/OptionsList.vue | 4 +- .../system/developer/tabs/StaticStorage.vue | 18 +- src/views/user/ResetPassword.vue | 6 +- 20 files changed, 327 insertions(+), 326 deletions(-) diff --git a/src/components/Attachment/AttachmentDetailModal.vue b/src/components/Attachment/AttachmentDetailModal.vue index e81049dc4..73c1e18a8 100644 --- a/src/components/Attachment/AttachmentDetailModal.vue +++ b/src/components/Attachment/AttachmentDetailModal.vue @@ -19,9 +19,9 @@ 附件名: - - - + + + @@ -63,9 +63,9 @@ 普通链接: - + - + @@ -74,12 +74,13 @@ ![{{ attachment.name }}]({{ attachment.path }}) Markdown 格式: - - + diff --git a/src/components/Input/AttachmentInput.vue b/src/components/Input/AttachmentInput.vue index 81e04b236..75667de68 100644 --- a/src/components/Input/AttachmentInput.vue +++ b/src/components/Input/AttachmentInput.vue @@ -1,9 +1,11 @@ {{ item.summary }}... @@ -106,22 +106,23 @@ :rowKey="sheet => sheet.id" :scrollToFirstRowOnChange="true" > - - - {{ text }} - - - {{ text }} - - + @@ -155,12 +156,14 @@ - 编辑 + 编辑 + - 还原 + 还原 @@ -181,7 +184,7 @@ okText="确定" @confirm="handleEditStatusClick(sheet.id, 'RECYCLE')" > - 回收站 + 回收站 - 删除 + 删除 - 设置 + 设置
@@ -218,8 +221,8 @@ @onClose="selectedSheet = {}" > - 管理 + 管理 访问 diff --git a/src/views/sheet/independent/JournalList.vue b/src/views/sheet/independent/JournalList.vue index a9b8b9a99..2069186f0 100644 --- a/src/views/sheet/independent/JournalList.vue +++ b/src/views/sheet/independent/JournalList.vue @@ -40,31 +40,23 @@ diff --git a/src/views/sheet/independent/LinkList.vue b/src/views/sheet/independent/LinkList.vue index 95f8806a4..477b7d3d3 100644 --- a/src/views/sheet/independent/LinkList.vue +++ b/src/views/sheet/independent/LinkList.vue @@ -68,9 +68,7 @@ - - 编辑 - + 编辑 - 删除 + 删除 @@ -123,7 +121,7 @@ {{ text }} - 编辑 + 编辑 - 删除 + 删除 diff --git a/src/views/system/About.vue b/src/views/system/About.vue index 2439f6d63..6759f2b75 100644 --- a/src/views/system/About.vue +++ b/src/views/system/About.vue @@ -6,9 +6,9 @@