From b7bbfd2709fa05409cb54f29781ead635f2ccdb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=ED=95=9C=EC=A3=BC?= Date: Mon, 22 Jul 2024 22:41:13 +0900 Subject: [PATCH 1/2] =?UTF-8?q?[K5P-51]=20[feat]=20=EC=83=81=ED=92=88=20?= =?UTF-8?q?=EC=83=9D=EC=84=B1=20=EA=B5=AC=ED=98=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/scss/component/modal.scss | 22 +++- src/components/common/btn/ThemeWideBtn.vue | 29 +++++ src/components/common/input/TextAreaInput.vue | 30 +++++ src/components/common/modal/ModalFooter.vue | 35 ++++++ src/components/common/modal/ModalHeader.vue | 34 ++++++ src/components/item/ItemCreateModal.vue | 110 ++++++++++++++++++ src/components/item/ItemModal.vue | 23 ---- src/components/item/ItemTable.vue | 2 +- src/components/item/ItemTableRow.vue | 9 +- src/router/index.js | 5 + src/stores/item.js | 3 + src/utils/axios.js | 32 ++++- src/utils/file.js | 0 src/utils/item.js | 51 ++++++++ src/views/MainView.vue | 1 + src/views/item/ItemDetailView.vue | 21 ++++ src/views/item/ItemListView.vue | 42 ++++--- 17 files changed, 399 insertions(+), 50 deletions(-) create mode 100644 src/components/common/btn/ThemeWideBtn.vue create mode 100644 src/components/common/input/TextAreaInput.vue create mode 100644 src/components/common/modal/ModalFooter.vue create mode 100644 src/components/common/modal/ModalHeader.vue create mode 100644 src/components/item/ItemCreateModal.vue delete mode 100644 src/components/item/ItemModal.vue create mode 100644 src/utils/file.js create mode 100644 src/utils/item.js create mode 100644 src/views/item/ItemDetailView.vue diff --git a/src/assets/scss/component/modal.scss b/src/assets/scss/component/modal.scss index 729c956..c69774a 100644 --- a/src/assets/scss/component/modal.scss +++ b/src/assets/scss/component/modal.scss @@ -1,11 +1,23 @@ .modal-overlay { position: fixed; - top: 0; - left: 0; - width: 100%; - height: 100%; - background: rgba(0, 0, 0, 0.5); + top: $nav-bar-height; + left: $side-bar-width; + width: calc(100vw - $side-bar-width); + height: calc(100vh - $nav-bar-height); + background: rgba(255, 2550, 255, 0.7); display: flex; justify-content: center; align-items: center; +} + +.modal-content { + @include flex-box(column, center, 20px); + width: 400px; + padding: 0px 30px; + border-radius : 10px; + box-shadow: $base-shadow; + background-color: white; + .modal-main { + @include flex-box(column, center, 20px); + } } \ No newline at end of file diff --git a/src/components/common/btn/ThemeWideBtn.vue b/src/components/common/btn/ThemeWideBtn.vue new file mode 100644 index 0000000..4555bf9 --- /dev/null +++ b/src/components/common/btn/ThemeWideBtn.vue @@ -0,0 +1,29 @@ + + + + + \ No newline at end of file diff --git a/src/components/common/input/TextAreaInput.vue b/src/components/common/input/TextAreaInput.vue new file mode 100644 index 0000000..efaaf8a --- /dev/null +++ b/src/components/common/input/TextAreaInput.vue @@ -0,0 +1,30 @@ + + + + + \ No newline at end of file diff --git a/src/components/common/modal/ModalFooter.vue b/src/components/common/modal/ModalFooter.vue new file mode 100644 index 0000000..66a0c82 --- /dev/null +++ b/src/components/common/modal/ModalFooter.vue @@ -0,0 +1,35 @@ + + + + + \ No newline at end of file diff --git a/src/components/common/modal/ModalHeader.vue b/src/components/common/modal/ModalHeader.vue new file mode 100644 index 0000000..e5b84ca --- /dev/null +++ b/src/components/common/modal/ModalHeader.vue @@ -0,0 +1,34 @@ + + + + + \ No newline at end of file diff --git a/src/components/item/ItemCreateModal.vue b/src/components/item/ItemCreateModal.vue new file mode 100644 index 0000000..73107fc --- /dev/null +++ b/src/components/item/ItemCreateModal.vue @@ -0,0 +1,110 @@ + + + + + \ No newline at end of file diff --git a/src/components/item/ItemModal.vue b/src/components/item/ItemModal.vue deleted file mode 100644 index 1a861d9..0000000 --- a/src/components/item/ItemModal.vue +++ /dev/null @@ -1,23 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/components/item/ItemTable.vue b/src/components/item/ItemTable.vue index c8dd4bc..98e33d5 100644 --- a/src/components/item/ItemTable.vue +++ b/src/components/item/ItemTable.vue @@ -26,7 +26,7 @@ export default { ...mapStores(useItemStore), }, methods: { - ...mapActions(useItemStore, ['setColumnSort']) + ...mapActions(useItemStore, ['setColumnSort']), } } diff --git a/src/components/item/ItemTableRow.vue b/src/components/item/ItemTableRow.vue index aa0a10f..20a2e52 100644 --- a/src/components/item/ItemTableRow.vue +++ b/src/components/item/ItemTableRow.vue @@ -1,6 +1,6 @@