From 291290d7f16c23adde3de97865782ccd023b0c9e Mon Sep 17 00:00:00 2001 From: mtruning <1262327911@qq.com> Date: Thu, 23 Dec 2021 12:17:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9Emodal=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 1 - .../project/items/components/Card/index.vue | 3 --- .../project/items/components/List/index.vue | 1 + .../items/components/ModalCard/index.vue | 17 +++++++++++++++-- src/views/project/items/index.d.ts | 6 +++++- .../project/layout/components/Create/index.vue | 1 - 6 files changed, 21 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index c52a3870..ac301757 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,6 @@ "scripts": { "dev": "vite", "build": "vue-tsc --noEmit && vite build", - "serve": "vite preview", "lint": "eslint \"{src}/**/*.{vue,ts,tsx}\" --fix --ext" }, "dependencies": { diff --git a/src/views/project/items/components/Card/index.vue b/src/views/project/items/components/Card/index.vue index fd2accf4..4adb6fec 100644 --- a/src/views/project/items/components/Card/index.vue +++ b/src/views/project/items/components/Card/index.vue @@ -173,9 +173,6 @@ const handleSelect = (key: string) => { case 'edit': editHandle() break - - default: - break } } diff --git a/src/views/project/items/components/List/index.vue b/src/views/project/items/components/List/index.vue index 3086c940..c2425bd4 100644 --- a/src/views/project/items/components/List/index.vue +++ b/src/views/project/items/components/List/index.vue @@ -20,6 +20,7 @@ v-model:show="modalShow" :cardData="modalData" @close="closeModal" + @edit="editHandle" /> diff --git a/src/views/project/items/components/ModalCard/index.vue b/src/views/project/items/components/ModalCard/index.vue index 4492b4bd..95634dd2 100644 --- a/src/views/project/items/components/ModalCard/index.vue +++ b/src/views/project/items/components/ModalCard/index.vue @@ -53,7 +53,7 @@