diff --git a/src/components/button/WriteBtn.vue b/src/components/button/WriteBtn.vue index a9b5ca1..41b56c9 100644 --- a/src/components/button/WriteBtn.vue +++ b/src/components/button/WriteBtn.vue @@ -4,10 +4,6 @@ - diff --git a/src/components/voteboard/voteCard.vue b/src/components/voteboard/voteCard.vue index 6662bad..f7b91ca 100644 --- a/src/components/voteboard/voteCard.vue +++ b/src/components/voteboard/voteCard.vue @@ -1,55 +1,71 @@ diff --git a/src/components/voteboard/voteCardList.vue b/src/components/voteboard/voteCardList.vue index d527537..71fa5b6 100644 --- a/src/components/voteboard/voteCardList.vue +++ b/src/components/voteboard/voteCardList.vue @@ -3,9 +3,15 @@ + :data="item" + /> @@ -16,14 +22,30 @@ const props = defineProps({ type: Array, required: true, }, + }); -const emit = defineEmits(['addContents','checkedNames']); +const emit = defineEmits(['addContents','checkedNames','endVoteId','voteEnded','voteDelete']); const addContents = (itemList ,voteId) =>{ emit('addContents',itemList ,voteId); } const checkedNames = (numList) =>{ emit('checkedNames',numList); } +const endVoteId = (VoteId) =>{ + emit('endVoteId',VoteId); +} +const voteEnded = (id) =>{ + emit('voteEnded',id); +} +const voteDelete = (id) =>{ + emit('voteDelete',id); +} +const updateVote = (id) =>{ + emit('updateVote',id); +} +const randomList = (randomList , id) =>{ + emit('randomList',randomList,id); +} diff --git a/src/components/voteboard/voteResultCard.vue b/src/components/voteboard/voteResultCard.vue index 2c318a5..13b7a15 100644 --- a/src/components/voteboard/voteResultCard.vue +++ b/src/components/voteboard/voteResultCard.vue @@ -2,14 +2,15 @@
@@ -17,6 +18,16 @@ diff --git a/src/components/voteboard/voteResultList.vue b/src/components/voteboard/voteResultList.vue index c0f9a66..5a8e4d0 100644 --- a/src/components/voteboard/voteResultList.vue +++ b/src/components/voteboard/voteResultList.vue @@ -2,9 +2,10 @@
- + - +
@@ -12,6 +13,28 @@