- DataTable Column.title 类型由 string 扩展为 string | ReactNode - 与 Users 列表的全选表头(复选框+计数)兼容,修复 tsc 编译错误 TS2322 - npm run build 通过(tsc -b + vite build exit 0)
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user