From a831413151f1006811e160796404f06f1f353bc6 Mon Sep 17 00:00:00 2001 From: roymondchen Date: Fri, 3 Jan 2025 19:47:25 +0800 Subject: [PATCH] =?UTF-8?q?feat(form):=20groupList=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E5=A4=8D=E5=88=B6=E5=8D=95=E6=9D=A1=E8=AE=B0=E5=BD=95=EF=BC=8C?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E7=A7=BB=E5=8A=A8=E5=8D=95=E6=9D=A1=E8=AE=B0?= =?UTF-8?q?=E5=BE=97=E5=88=B0=E6=8C=87=E5=AE=9A=E4=BD=8D=E7=BD=AE=EF=BC=8C?= =?UTF-8?q?table=E6=94=AF=E6=8C=81=E5=A4=8D=E5=88=B6=E5=8D=95=E6=9D=A1?= =?UTF-8?q?=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/form/src/containers/GroupList.vue | 10 +- .../form/src/containers/GroupListItem.vue | 108 +++++++++++++++--- packages/form/src/containers/Table.vue | 47 ++++++-- packages/form/src/schema.ts | 3 + packages/form/src/theme/table.scss | 5 - playground/src/configs/formDsl.ts | 3 + 6 files changed, 146 insertions(+), 30 deletions(-) diff --git a/packages/form/src/containers/GroupList.vue b/packages/form/src/containers/GroupList.vue index 87b8ee57..64818396 100644 --- a/packages/form/src/containers/GroupList.vue +++ b/packages/form/src/containers/GroupList.vue @@ -20,6 +20,7 @@ :disabled="disabled" :group-model="model[name]" @remove-item="removeHandler" + @copy-item="copyHandler" @swap-item="swapHandler" @change="changeHandler" @addDiffCount="onAddDiffCount()" @@ -41,6 +42,7 @@ diff --git a/packages/form/src/containers/Table.vue b/packages/form/src/containers/Table.vue index eda8bf7a..2a9ab86f 100644 --- a/packages/form/src/containers/Table.vue +++ b/packages/form/src/containers/Table.vue @@ -26,18 +26,32 @@ @@ -189,13 +203,12 @@