From 6e10401de33bcf788031e11883f4d5755be9376c Mon Sep 17 00:00:00 2001 From: OceanH <1404939185@qq.com> Date: Mon, 10 Apr 2023 23:55:13 +0800 Subject: [PATCH 1/3] =?UTF-8?q?fix(custom):=20=E5=B7=A6=E5=8F=B3=E5=B8=83?= =?UTF-8?q?=E5=B1=80=E5=88=A0=E9=99=A4=E6=A8=A1=E5=9D=97=E8=A7=86=E5=9B=BE?= =?UTF-8?q?=E6=9C=AA=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/custom/components/ModelBox.vue | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/src/views/custom/components/ModelBox.vue b/src/views/custom/components/ModelBox.vue index ac72bf05..87fb6311 100644 --- a/src/views/custom/components/ModelBox.vue +++ b/src/views/custom/components/ModelBox.vue @@ -18,7 +18,7 @@ -
+
{ let index: number = resumeJsonNewStore.value.COMPONENTS.findIndex( (item) => item.keyId === props.item.keyId @@ -123,6 +123,19 @@ insert.keyId = getUuid(); resumeJsonNewStore.value.COMPONENTS.splice(index, 0, insert); }; + + // 删除当前模块 + const delModel = () => { + if (resumeJsonNewStore.value.LAYOUT === 'classical') { + classicalDelete(); + } else { + emit('leftRightDelete', props.item); + } + }; + // 传统布局删除模块 + const classicalDelete = () => { + useDeleteModel(props.item); + }; From 18ed1760018a5f256d343ad8c70c41db82992912 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BC=9A=E9=A3=9E=E7=9A=84=E7=8C=AA?= Date: Thu, 13 Apr 2023 04:25:39 +0800 Subject: [PATCH 3/3] docs(README): update contributors --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index a59e7981..63a855e2 100644 --- a/README.md +++ b/README.md @@ -192,6 +192,13 @@ pnpm build 张雨凡 + + + OceanH/ +
+ OceanH +
+ -