mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-01-25 02:58:43 +08:00
chore(useCustomRow): 消除find tr函数类型错误
This commit is contained in:
parent
a712a8e5a0
commit
ba5809669d
@ -47,9 +47,9 @@ export function useCustomRow(
|
|||||||
const isCheckbox = rowSelection.type === 'checkbox';
|
const isCheckbox = rowSelection.type === 'checkbox';
|
||||||
if (isCheckbox) {
|
if (isCheckbox) {
|
||||||
// 找到tr
|
// 找到tr
|
||||||
const tr: HTMLElement = (e as MouseEvent)
|
const tr = (e as MouseEvent)
|
||||||
.composedPath?.()
|
.composedPath?.()
|
||||||
.find((dom: HTMLElement) => dom.tagName === 'TR') as HTMLElement;
|
.find((dom) => (dom as HTMLElement).tagName === 'TR') as HTMLElement;
|
||||||
if (!tr) return;
|
if (!tr) return;
|
||||||
// 找到Checkbox,检查是否为disabled
|
// 找到Checkbox,检查是否为disabled
|
||||||
const checkBox = tr.querySelector('input[type=checkbox]');
|
const checkBox = tr.querySelector('input[type=checkbox]');
|
||||||
|
Loading…
Reference in New Issue
Block a user