From ba5809669dbe699c970d3de42f850fafde13e2df Mon Sep 17 00:00:00 2001 From: invalid w Date: Sun, 8 Oct 2023 17:54:53 +0800 Subject: [PATCH] =?UTF-8?q?chore(useCustomRow):=20=20=E6=B6=88=E9=99=A4fin?= =?UTF-8?q?d=20tr=E5=87=BD=E6=95=B0=E7=B1=BB=E5=9E=8B=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Table/src/hooks/useCustomRow.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Table/src/hooks/useCustomRow.ts b/src/components/Table/src/hooks/useCustomRow.ts index 0f7a6ea0e..4610d9d81 100644 --- a/src/components/Table/src/hooks/useCustomRow.ts +++ b/src/components/Table/src/hooks/useCustomRow.ts @@ -47,9 +47,9 @@ export function useCustomRow( const isCheckbox = rowSelection.type === 'checkbox'; if (isCheckbox) { // 找到tr - const tr: HTMLElement = (e as MouseEvent) + const tr = (e as MouseEvent) .composedPath?.() - .find((dom: HTMLElement) => dom.tagName === 'TR') as HTMLElement; + .find((dom) => (dom as HTMLElement).tagName === 'TR') as HTMLElement; if (!tr) return; // 找到Checkbox,检查是否为disabled const checkBox = tr.querySelector('input[type=checkbox]');