From d5e307d4bbee7cf6f955a91885d67d216886b71c Mon Sep 17 00:00:00 2001 From: ruibaby Date: Fri, 3 Jan 2020 12:16:55 +0800 Subject: [PATCH] feat: support set summary for sheet. --- src/views/comment/components/CommentTab.vue | 2 + .../components/TargetCommentDrawer.vue | 22 +++++++-- .../comment/components/TargetCommentTree.vue | 48 +++++++++++++++---- .../sheet/components/SheetSettingDrawer.vue | 17 +++++++ 4 files changed, 76 insertions(+), 13 deletions(-) diff --git a/src/views/comment/components/CommentTab.vue b/src/views/comment/components/CommentTab.vue index 2d7e2ec1..a758fa69 100644 --- a/src/views/comment/components/CommentTab.vue +++ b/src/views/comment/components/CommentTab.vue @@ -437,6 +437,7 @@ const postColumns = [ { title: '昵称', dataIndex: 'author', + width: '150px', scopedSlots: { customRender: 'author' } }, { @@ -474,6 +475,7 @@ const sheetColumns = [ { title: '昵称', dataIndex: 'author', + width: '150px', scopedSlots: { customRender: 'author' } }, { diff --git a/src/views/comment/components/TargetCommentDrawer.vue b/src/views/comment/components/TargetCommentDrawer.vue index 12415aa8..557f7ab1 100644 --- a/src/views/comment/components/TargetCommentDrawer.vue +++ b/src/views/comment/components/TargetCommentDrawer.vue @@ -7,13 +7,19 @@ destroyOnClose @close="onClose" > - +

{{ title }}

@@ -51,13 +57,21 @@ destroyOnClose > - + diff --git a/src/views/comment/components/TargetCommentTree.vue b/src/views/comment/components/TargetCommentTree.vue index 96d0b743..adb09d17 100644 --- a/src/views/comment/components/TargetCommentTree.vue +++ b/src/views/comment/components/TargetCommentTree.vue @@ -2,11 +2,17 @@
- - - {{ comment.author }}-->{{ comment.id }} + + + {{ comment.author }} - -

+ +

{{ comment.createTime | moment }} {{ comment.createTime | timeAgo }} diff --git a/src/views/sheet/components/SheetSettingDrawer.vue b/src/views/sheet/components/SheetSettingDrawer.vue index 62db48eb..50e0eda7 100644 --- a/src/views/sheet/components/SheetSettingDrawer.vue +++ b/src/views/sheet/components/SheetSettingDrawer.vue @@ -67,6 +67,23 @@
+
+

摘要

+
+ + + + + +
+
+ +

缩略图