From 5f4931250f8e13282fe42012bfef6c0aa123a744 Mon Sep 17 00:00:00 2001 From: lijingjia Date: Tue, 23 Apr 2024 18:23:53 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E8=A1=A8=E5=8D=95=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Form/src/types/form.ts | 2 + src/components/Modal/src/BasicModal.vue | 8 +- src/components/Modal/src/components/Modal.tsx | 5 + .../Modal/src/components/ModalClose.vue | 77 +++++- src/components/Modal/src/props.ts | 1 + .../src/components/settings/ColumnSetting.vue | 2 +- src/hooks/web/usePermission.ts | 20 ++ src/locales/lang/en/component.ts | 1 + src/locales/lang/zh-CN/component.ts | 1 + src/views/baseinfo/columnset/api.ts | 16 +- .../columnset/components/tableColDrag.vue | 4 +- .../columnset/components/tableColSet.vue | 4 +- .../columnset/components/tableSet.vue | 1 - src/views/baseinfo/columnset/index.vue | 17 +- .../baseinfo/country/TenantAuditStepModal.vue | 1 + src/views/baseinfo/formset/Modal.vue | 110 -------- .../baseinfo/formset/TenantAuditStepModal.vue | 230 ---------------- src/views/baseinfo/formset/api.ts | 23 +- src/views/baseinfo/formset/columns.tsx | 121 +-------- .../baseinfo/formset/component/FormModel.vue | 130 +++++++++ src/views/baseinfo/formset/component/form.vue | 249 ++++++++++++++++++ src/views/baseinfo/formset/index.vue | 9 +- .../issuetype/TenantAuditStepModal.vue | 15 +- src/views/baseinfo/issuetype/api.ts | 2 +- .../baseinfo/lanes/TenantAuditStepModal.vue | 7 +- vite.config.ts | 1 - 26 files changed, 559 insertions(+), 498 deletions(-) delete mode 100644 src/views/baseinfo/formset/Modal.vue delete mode 100644 src/views/baseinfo/formset/TenantAuditStepModal.vue create mode 100644 src/views/baseinfo/formset/component/FormModel.vue create mode 100644 src/views/baseinfo/formset/component/form.vue diff --git a/src/components/Form/src/types/form.ts b/src/components/Form/src/types/form.ts index 51fbdaf9..5521e6e7 100644 --- a/src/components/Form/src/types/form.ts +++ b/src/components/Form/src/types/form.ts @@ -41,6 +41,7 @@ export interface FormActionType { ) => Promise validateFields: (nameList?: NamePath[]) => Promise validate: (nameList?: NamePath[]) => Promise + getFieldList: (nameList?: NamePath[]) => Promise scrollToField: (name: NamePath, options?: ScrollOptions) => Promise } @@ -133,6 +134,7 @@ export interface FormSchema { valueField?: string // Label name label?: string | VNode + enLabel?: string | VNode // Auxiliary text subLabel?: string // Help text on the right side of the text diff --git a/src/components/Modal/src/BasicModal.vue b/src/components/Modal/src/BasicModal.vue index 10905b50..9c71bc63 100644 --- a/src/components/Modal/src/BasicModal.vue +++ b/src/components/Modal/src/BasicModal.vue @@ -1,14 +1,19 @@ +