摘要: import { Equal, Expect } from "../helpers/type-utils"; interface Button<T> { value: T; label: string; } interface ButtonGroupProps<T> { buttons: Butto 阅读全文
posted @ 2023-08-12 16:49 Zhentiw 阅读(19) 评论(0) 推荐(0)
摘要: import { ReactNode } from "react"; import { Equal, Expect } from "../helpers/type-utils"; interface TableProps<T> { rows: T[]; renderRow: (row: T) => 阅读全文
posted @ 2023-08-12 16:19 Zhentiw 阅读(15) 评论(0) 推荐(0)
摘要: interface TableProps<T> { rows: T[]; renderRow: (row: T) => ReactNode; } export class Table<T> extends React.Component<TableProps<T>> { render(): Reac 阅读全文
posted @ 2023-08-12 16:08 Zhentiw 阅读(9) 评论(0) 推荐(0)