From 8b38019b95098c5da844dca2f45556ec4607cb03 Mon Sep 17 00:00:00 2001 From: kimdaae328 Date: Fri, 24 Jan 2025 12:26:46 +0900 Subject: [PATCH] =?UTF-8?q?=ED=94=84=EB=A1=9C=ED=95=84,=20=EB=8C=93?= =?UTF-8?q?=EA=B8=80=20=EB=94=94=EC=9E=90=EC=9D=B8=20=EC=A0=95=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/board/BoardComment.vue | 94 ++++++++++++--------- src/components/board/BoardCommentList.vue | 52 ++++++++++++ src/components/board/BoardProfile.vue | 71 ++++++++++------ src/components/button/BoardRecommendBtn.vue | 6 +- src/views/board/BoardView.vue | 22 +++-- 5 files changed, 177 insertions(+), 68 deletions(-) create mode 100644 src/components/board/BoardCommentList.vue diff --git a/src/components/board/BoardComment.vue b/src/components/board/BoardComment.vue index e71b3ee..a06851e 100644 --- a/src/components/board/BoardComment.vue +++ b/src/components/board/BoardComment.vue @@ -1,56 +1,74 @@ diff --git a/src/components/board/BoardCommentList.vue b/src/components/board/BoardCommentList.vue new file mode 100644 index 0000000..6384fa5 --- /dev/null +++ b/src/components/board/BoardCommentList.vue @@ -0,0 +1,52 @@ + + + \ No newline at end of file diff --git a/src/components/board/BoardProfile.vue b/src/components/board/BoardProfile.vue index 5e925ec..9640046 100644 --- a/src/components/board/BoardProfile.vue +++ b/src/components/board/BoardProfile.vue @@ -1,30 +1,45 @@ @@ -41,7 +56,7 @@ import { onMounted } from 'vue'; const router = useRouter(); // Props 정의 -const props = defineProps({ +defineProps({ profileName: { type: String, default: '익명', @@ -54,17 +69,9 @@ const props = defineProps({ type: Boolean, default: true, }, - // author: { - // type: Boolean, - // default: true, - // }, - views: { - type: Number, - default: 0, - }, - comments: { - type: Number, - default: 0, + author: { + type: Boolean, + default: false, }, }); @@ -91,10 +98,26 @@ const handleDelete = async () => { diff --git a/src/components/button/BoardRecommendBtn.vue b/src/components/button/BoardRecommendBtn.vue index d2452b1..71fae76 100644 --- a/src/components/button/BoardRecommendBtn.vue +++ b/src/components/button/BoardRecommendBtn.vue @@ -1,4 +1,4 @@ -