Commit 9092c34cd5126bea65fa655a06dff38a3a09c1ba
Committed by
GitHub
1 parent
3d55b0d4
fix(table):basicColumn加泛型 (#1618)
新版本ant design vue的columnProps使用了泛型,导致xxx.data.ts里面定义的BasicColumn使用customRender地方全部报错
Showing
1 changed file
with
1 additions
and
1 deletions
src/components/Table/src/types/table.ts
... | ... | @@ -412,7 +412,7 @@ export type CellFormat = |
412 | 412 | | Map<string | number, any>; |
413 | 413 | |
414 | 414 | // @ts-ignore |
415 | -export interface BasicColumn extends ColumnProps { | |
415 | +export interface BasicColumn extends ColumnProps<Recordable> { | |
416 | 416 | children?: BasicColumn[]; |
417 | 417 | filters?: { |
418 | 418 | text: string; | ... | ... |