From 64a915f0d846fd756b694a0109f9c0bf670bd705 Mon Sep 17 00:00:00 2001 From: Dang Date: Fri, 28 Feb 2025 14:40:57 +0900 Subject: [PATCH 1/2] =?UTF-8?q?=EC=9A=A9=EC=96=B4=EC=A7=91=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/button/EditBtn.vue | 33 +++++++--- src/components/button/WriteBtn.vue | 27 +++++++- src/components/projectlist/ProjectList.vue | 2 +- src/components/wordDict/DictCard.vue | 75 ++++------------------ src/components/wordDict/DictWrite.vue | 29 --------- src/views/wordDict/wordDict.vue | 58 ++++------------- 6 files changed, 73 insertions(+), 151 deletions(-) diff --git a/src/components/button/EditBtn.vue b/src/components/button/EditBtn.vue index 9987ddb..d3437b0 100644 --- a/src/components/button/EditBtn.vue +++ b/src/components/button/EditBtn.vue @@ -1,13 +1,30 @@ - diff --git a/src/components/button/WriteBtn.vue b/src/components/button/WriteBtn.vue index 41b56c9..0bc6ef9 100644 --- a/src/components/button/WriteBtn.vue +++ b/src/components/button/WriteBtn.vue @@ -1,9 +1,30 @@ +const props = defineProps({ + isToggleEnabled: { + type: Boolean, + default: false, + }, +}); + +const buttonClass = ref("bx bx-edit"); + +const toggleText = () => { + if (props.isToggleEnabled) { + buttonClass.value = buttonClass.value === "bx bx-edit" ? "bx bx-x" : "bx bx-edit"; + } +}; + +const resetButton = () => { + buttonClass.value = "bx bx-edit"; +}; + +defineExpose({ resetButton }); + \ No newline at end of file diff --git a/src/components/projectlist/ProjectList.vue b/src/components/projectlist/ProjectList.vue index 7df7b41..dfbb7c3 100644 --- a/src/components/projectlist/ProjectList.vue +++ b/src/components/projectlist/ProjectList.vue @@ -100,7 +100,7 @@ import { computed, ref, watch, onMounted, inject } from 'vue'; import SearchBar from '@c/search/SearchBar.vue'; import ProjectCard from '@c/list/ProjectCard.vue'; - import CategoryBtn from '@c/category/CategoryBtn.vue'; + import CategoryBtn from '@/components/category/CategoryBtn.vue'; import WriteBtn from '@c/button/WriteBtn.vue'; import CenterModal from '@c/modal/CenterModal.vue'; import FormSelect from '@c/input/FormSelect.vue'; diff --git a/src/components/wordDict/DictCard.vue b/src/components/wordDict/DictCard.vue index 94b6deb..392a544 100644 --- a/src/components/wordDict/DictCard.vue +++ b/src/components/wordDict/DictCard.vue @@ -18,7 +18,6 @@ type="checkbox" class="form-check-input admin-chk" :name="item.WRDDICSEQ" - id="" @change="toggleCheck($event)" >
@@ -66,7 +65,7 @@
- +
@@ -74,7 +73,7 @@