From 3b913c1af48aa6a47e632725b008061d7faca204 Mon Sep 17 00:00:00 2001 From: roymondchen Date: Thu, 20 Nov 2025 18:05:53 +0800 Subject: [PATCH] =?UTF-8?q?feat(form):=20group=20list=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=8C=89=E9=92=AE=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/form-schema/src/base.ts | 5 +++++ packages/form/src/containers/Container.vue | 2 ++ packages/form/src/containers/GroupList.vue | 7 ++++--- packages/form/src/containers/Panel.vue | 3 ++- packages/form/src/table/Table.vue | 4 ++-- 5 files changed, 15 insertions(+), 6 deletions(-) diff --git a/packages/form-schema/src/base.ts b/packages/form-schema/src/base.ts index cc75bf33..c7634776 100644 --- a/packages/form-schema/src/base.ts +++ b/packages/form-schema/src/base.ts @@ -41,6 +41,7 @@ export interface FieldProps { disabled?: boolean; size?: 'large' | 'default' | 'small'; lastValues?: Record; + isCompare?: boolean; } /** @@ -763,6 +764,10 @@ export interface GroupListConfig extends FormItem { groupModel: any, ) => boolean | boolean; moveSpecifyLocation?: boolean; + addButtonConfig?: { + props?: Record; + text?: string; + }; [key: string]: any; } diff --git a/packages/form/src/containers/Container.vue b/packages/form/src/containers/Container.vue index 835136df..b81909e6 100644 --- a/packages/form/src/containers/Container.vue +++ b/packages/form/src/containers/Container.vue @@ -40,6 +40,7 @@ :is="tagName" :model="model" :last-values="lastValues" + :is-compare="isCompare" @change="onChangeHandler" @addDiffCount="onAddDiffCount" > @@ -54,6 +55,7 @@ :is="tagName" :model="model" :last-values="lastValues" + :is-compare="isCompare" @change="onChangeHandler" @addDiffCount="onAddDiffCount" > diff --git a/packages/form/src/containers/GroupList.vue b/packages/form/src/containers/GroupList.vue index ac337928..a35454c9 100644 --- a/packages/form/src/containers/GroupList.vue +++ b/packages/form/src/containers/GroupList.vue @@ -33,11 +33,12 @@
新增{{ config.addButtonConfig?.text || '新增' }}
@@ -46,7 +47,7 @@