From 23df7c7f30a3bd1af881ad5cb88279e7a8a7c995 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sun, 21 Jun 2026 22:24:00 -0700 Subject: [PATCH] =?UTF-8?q?fix(web-antdv-next):=20=E9=80=82=E9=85=8D=20ant?= =?UTF-8?q?dv-next=205=20=E7=BB=84=E4=BB=B6=20API?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Descriptions class 改为 classes.root,Image error slot 改为 fallback,Tree 标题 slot 改为 titleRender,FormItem labelCol.style 改为 flex。 Transfer 事件和 footer slot 对齐 TransferKey/TransferDirection,并修复 Button color、ActionItem color、重复 attachments 等类型问题。 web-antdv-next 清缓存 typecheck 0 error。 --- .../src/api/bpm/processInstance/index.ts | 1 - .../components/description/use-description.ts | 1 - .../src/components/table-action/typing.ts | 2 +- .../src/components/tinymce/img-upload.vue | 2 +- .../components/nodes/parallel-node.vue | 2 +- .../src/views/bpm/oa/leave/detail.vue | 2 +- .../crm/business/detail/modules/info.vue | 4 +-- .../views/crm/clue/detail/modules/info.vue | 4 +-- .../views/crm/contact/detail/modules/info.vue | 4 +-- .../crm/contract/detail/modules/info.vue | 4 +-- .../crm/customer/detail/modules/info.vue | 4 +-- .../crm/receivable/detail/modules/info.vue | 4 +-- .../receivable/plan/detail/modules/info.vue | 4 +-- .../src/views/infra/redis/modules/info.vue | 2 +- .../src/views/iot/alert/record/index.vue | 3 +- .../component-container-property.vue | 34 ++++++++++++------- .../components/mobile/magic-cube/index.vue | 2 +- .../components/mobile/popover/index.vue | 2 +- .../components/mobile/tab-bar/index.vue | 2 +- .../mall/trade/afterSale/detail/index.vue | 6 ++-- .../views/mall/trade/order/detail/index.vue | 8 ++--- .../system/user/components/select-modal.vue | 19 +++++++---- 22 files changed, 64 insertions(+), 52 deletions(-) diff --git a/apps/web-antdv-next/src/api/bpm/processInstance/index.ts b/apps/web-antdv-next/src/api/bpm/processInstance/index.ts index 7199ba360..8ed2116c5 100644 --- a/apps/web-antdv-next/src/api/bpm/processInstance/index.ts +++ b/apps/web-antdv-next/src/api/bpm/processInstance/index.ts @@ -84,7 +84,6 @@ export namespace BpmProcessInstanceApi { reason: string; signPicUrl: string; status: number; - attachments?: string[]; } /** 抄送流程实例 */ diff --git a/apps/web-antdv-next/src/components/description/use-description.ts b/apps/web-antdv-next/src/components/description/use-description.ts index e3b676af2..9559cb648 100644 --- a/apps/web-antdv-next/src/components/description/use-description.ts +++ b/apps/web-antdv-next/src/components/description/use-description.ts @@ -21,7 +21,6 @@ export function useDescription(options?: Partial) { inheritAttrs: false, setup(_props, { attrs, slots }) { return () => { - // @ts-expect-error - 避免类型实例化过深 return h(Description, { ...propsState, ...attrs }, slots); }; }, diff --git a/apps/web-antdv-next/src/components/table-action/typing.ts b/apps/web-antdv-next/src/components/table-action/typing.ts index 0c0e0088e..414008223 100644 --- a/apps/web-antdv-next/src/components/table-action/typing.ts +++ b/apps/web-antdv-next/src/components/table-action/typing.ts @@ -10,7 +10,7 @@ export interface PopConfirm { disabled?: boolean; } -export interface ActionItem extends ButtonProps { +export interface ActionItem extends Omit { onClick?: () => void; type?: ButtonType; label?: string; diff --git a/apps/web-antdv-next/src/components/tinymce/img-upload.vue b/apps/web-antdv-next/src/components/tinymce/img-upload.vue index fd94b9195..7376f0e73 100644 --- a/apps/web-antdv-next/src/components/tinymce/img-upload.vue +++ b/apps/web-antdv-next/src/components/tinymce/img-upload.vue @@ -33,7 +33,7 @@ const getButtonProps = computed(() => { }; }); -async function customRequest(info: UploadRequestOption) { +async function customRequest(info: UploadRequestOption) { // 1. emit 上传中 const file = info.file as File; const name = file?.name; diff --git a/apps/web-antdv-next/src/views/bpm/components/simple-process-design/components/nodes/parallel-node.vue b/apps/web-antdv-next/src/views/bpm/components/simple-process-design/components/nodes/parallel-node.vue index b08499cbd..2728c298e 100644 --- a/apps/web-antdv-next/src/views/bpm/components/simple-process-design/components/nodes/parallel-node.vue +++ b/apps/web-antdv-next/src/views/bpm/components/simple-process-design/components/nodes/parallel-node.vue @@ -139,7 +139,7 @@ function recursiveFindParentNode(