From 89458cd18cf9a1dbf8301385eaf293208c1f1248 Mon Sep 17 00:00:00 2001 From: Ryan Wang Date: Thu, 26 May 2022 14:21:31 +0800 Subject: [PATCH] feat: add comments list page Signed-off-by: Ryan Wang --- src/core/icons.ts | 4 + .../contents/attachments/AttachmentList.vue | 14 + src/views/contents/comments/CommentList.vue | 213 +++++++++- src/views/contents/posts/PostList.vue | 26 -- src/views/contents/sheets/SheetList.vue | 394 +++++++++--------- 5 files changed, 421 insertions(+), 230 deletions(-) diff --git a/src/core/icons.ts b/src/core/icons.ts index 617b92b0d..52b52416f 100644 --- a/src/core/icons.ts +++ b/src/core/icons.ts @@ -35,6 +35,7 @@ import IconClose from "~icons/ri/close-line"; // @ts-ignore import IconErrorWarning from "~icons/ri/error-warning-line"; // @ts-ignore +// @ts-ignore import IconCheckboxCircle from "~icons/ri/checkbox-circle-line"; // @ts-ignore import IconInformation from "~icons/ri/information-line"; @@ -50,6 +51,8 @@ import IconSave from "~icons/ri/save-line"; import IconList from "~icons/ri/list-unordered"; // @ts-ignore import IconGrid from "~icons/ri/grid-line"; +// @ts-ignore +import IconCheckboxFill from "~icons/ri/checkbox-circle-fill"; export { IconDashboard, @@ -78,4 +81,5 @@ export { IconSave, IconList, IconGrid, + IconCheckboxFill, }; diff --git a/src/views/contents/attachments/AttachmentList.vue b/src/views/contents/attachments/AttachmentList.vue index d6732d953..4bd5ff17f 100644 --- a/src/views/contents/attachments/AttachmentList.vue +++ b/src/views/contents/attachments/AttachmentList.vue @@ -10,6 +10,7 @@ import { IconArrowDown, IconArrowLeft, IconArrowRight, + IconCheckboxFill, IconGrid, IconList, IconPalette, @@ -190,6 +191,14 @@ const attachments = Array.from(new Array(50), (_, index) => index).map( 1.2 MB +
+
上传者
+
+ Ryan Wang +
+
@@ -369,6 +378,11 @@ const attachments = Array.from(new Array(50), (_, index) => index).map( > {{ attachment.name }}

+ +
diff --git a/src/views/contents/comments/CommentList.vue b/src/views/contents/comments/CommentList.vue index f3563446f..dfca5dd14 100644 --- a/src/views/contents/comments/CommentList.vue +++ b/src/views/contents/comments/CommentList.vue @@ -1 +1,212 @@ - + + diff --git a/src/views/contents/posts/PostList.vue b/src/views/contents/posts/PostList.vue index e32f98f66..20efab10d 100644 --- a/src/views/contents/posts/PostList.vue +++ b/src/views/contents/posts/PostList.vue @@ -528,29 +528,3 @@ const handleRouteToEditor = (post: any) => { - - diff --git a/src/views/contents/sheets/SheetList.vue b/src/views/contents/sheets/SheetList.vue index dd5bd46f6..c1be3580f 100644 --- a/src/views/contents/sheets/SheetList.vue +++ b/src/views/contents/sheets/SheetList.vue @@ -3,11 +3,13 @@ import { VButton } from "@/components/base/button"; import { VCard } from "@/components/base/card"; import { VSpace } from "@/components/base/space"; import { VTag } from "@/components/base/tag"; +import { VTabs } from "@/components/base/tabs"; import { VInput } from "@/components/base/input"; import { VPageHeader } from "@/components/base/header"; import { IconPages, IconSettings } from "@/core/icons"; import { posts } from "../posts/posts-mock"; import { ref } from "vue"; +import TabItem from "@/components/base/tabs/TabItem.vue"; const postsRef = ref( posts.map((item) => { @@ -19,6 +21,7 @@ const postsRef = ref( ); const checkAll = ref(false); +const activeId = ref("advanced"); const handleCheckAll = () => { postsRef.value.forEach((item) => { @@ -38,219 +41,204 @@ handleCheckAll();
- - -
    -
  • -
    -
    + + + + + - -