Commit 9092c34cd5126bea65fa655a06dff38a3a09c1ba

Authored by Caisin
Committed by GitHub
1 parent 3d55b0d4

fix(table):basicColumn加泛型 (#1618)

新版本ant design vue的columnProps使用了泛型,导致xxx.data.ts里面定义的BasicColumn使用customRender地方全部报错
src/components/Table/src/types/table.ts
@@ -412,7 +412,7 @@ export type CellFormat = @@ -412,7 +412,7 @@ export type CellFormat =
412 | Map<string | number, any>; 412 | Map<string | number, any>;
413 413
414 // @ts-ignore 414 // @ts-ignore
415 -export interface BasicColumn extends ColumnProps { 415 +export interface BasicColumn extends ColumnProps<Recordable> {
416 children?: BasicColumn[]; 416 children?: BasicColumn[];
417 filters?: { 417 filters?: {
418 text: string; 418 text: string;