diff --git a/public/css/custom.css b/public/css/custom.css index d9c6ca3..62bc1b9 100644 --- a/public/css/custom.css +++ b/public/css/custom.css @@ -5,11 +5,6 @@ display: block !important; } -/* 게시판리스트 */ -.bg-label-gray td { - color: #DC3545 !important; -} - /* 휴가 */ .half-day-buttons { diff --git a/src/components/calendar/holiday.js b/src/components/calendar/holiday.js new file mode 100644 index 0000000..d80b03a --- /dev/null +++ b/src/components/calendar/holiday.js @@ -0,0 +1,18 @@ +// src/api/holiday.js +import axios from "@api"; + +export async function fetchHolidays(year, month) { + try { + const response = await axios.get(`vacation/${year}/${month}`); + const holidayEvents = response.data.map((holiday) => ({ + title: holiday.name, + start: holiday.date, // "YYYY-MM-DD" 형식 + backgroundColor: "#ff6666", + classNames: ["holiday-event"], + })); + return holidayEvents; + } catch (error) { + console.error("공휴일 정보를 불러오지 못했습니다.", error); + return []; + } +} diff --git a/src/components/input/FormInput.vue b/src/components/input/FormInput.vue index 904d89f..76f5650 100644 --- a/src/components/input/FormInput.vue +++ b/src/components/input/FormInput.vue @@ -13,6 +13,7 @@ :maxLength="maxlength" :placeholder="title" :disabled="disabled" + :min="min" />
{{ title }}을 확인해주세요. @@ -64,6 +65,10 @@ const props = defineProps({ disabled: { type: Boolean, default: false, + }, + min: { + type: String, + default: false, } }); diff --git a/src/views/board/BoardList.vue b/src/views/board/BoardList.vue index 523356f..3816ff6 100644 --- a/src/views/board/BoardList.vue +++ b/src/views/board/BoardList.vue @@ -42,11 +42,11 @@ - - - - - + + + + + @@ -54,7 +54,7 @@
번호제목작성자작성일조회수번호제목작성자작성일조회수