Merge branch '250408_park'
All checks were successful
LocalNet_front/pipeline/head This commit looks good
All checks were successful
LocalNet_front/pipeline/head This commit looks good
This commit is contained in:
commit
f21973705e
@ -16,7 +16,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { ref, computed } from 'vue';
|
import { ref, computed, watch } from 'vue';
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
comment: {
|
comment: {
|
||||||
@ -64,6 +64,11 @@
|
|||||||
const likeCount = computed(() => props.comment?.likeCount ?? props.likeCount);
|
const likeCount = computed(() => props.comment?.likeCount ?? props.likeCount);
|
||||||
const dislikeCount = computed(() => props.comment?.dislikeCount ?? props.dislikeCount);
|
const dislikeCount = computed(() => props.comment?.dislikeCount ?? props.dislikeCount);
|
||||||
|
|
||||||
|
watch([() => props.likeClicked, () => props.dislikeClicked], ([likeNewval, dislikeNewval]) => {
|
||||||
|
likeClicked.value = likeNewval;
|
||||||
|
dislikeClicked.value = dislikeNewval;
|
||||||
|
});
|
||||||
|
|
||||||
const handleLike = () => {
|
const handleLike = () => {
|
||||||
const isLike = !likeClicked.value;
|
const isLike = !likeClicked.value;
|
||||||
const isDislike = false;
|
const isDislike = false;
|
||||||
|
|||||||
@ -512,6 +512,7 @@
|
|||||||
|
|
||||||
// 마우스 홀드시 이벤트 모달
|
// 마우스 홀드시 이벤트 모달
|
||||||
dateCell.addEventListener('mousedown', e => {
|
dateCell.addEventListener('mousedown', e => {
|
||||||
|
if (!isSelectableDate(arg.date)) return; // 공휴일 제외
|
||||||
const date = $common.dateFormatter(arg.date, 'YMD');
|
const date = $common.dateFormatter(arg.date, 'YMD');
|
||||||
handleMouseDown(date, e);
|
handleMouseDown(date, e);
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user