JavaScript 函数 DelSelection: 删除选中表格行
const DelSelection = (rows?: User[]) => {\n if (rows) {\n rows.forEach((row) => {\n // TODO: improvement typing when refactor table\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-expect-error\n multipleTableRef.value!.toggleRowSelection(row, undefined)\n })\n } else {\n multipleTableRef.value!.clearSelection()\n }\n }
原文地址: https://www.cveoy.top/t/topic/pEZc 著作权归作者所有。请勿转载和采集!