fix: DataTable title 类型扩展支持 ReactNode 以兼容复选框表头
Deploy to Server / deploy (push) Successful in 1m36s

- DataTable Column.title 类型由 string 扩展为 string | ReactNode
- 与 Users 列表的全选表头(复选框+计数)兼容,修复 tsc 编译错误 TS2322
- npm run build 通过(tsc -b + vite build exit 0)
This commit is contained in:
Trae Assistant
2026-10-05 08:30:47 +08:00
parent 48ac08d19d
commit 5e2a6adf06
+1 -1
View File
@@ -2,7 +2,7 @@ import { ReactNode } from 'react';
interface Column<T> { interface Column<T> {
key: string; key: string;
title: string; title: string | ReactNode;
width?: string; width?: string;
render?: (row: T, index: number) => ReactNode; render?: (row: T, index: number) => ReactNode;
} }