Skip to content

Commit d41d7a6

Browse files
authored
fix(typescript): Table type modification (#4781)
vite build error: Wrong type
1 parent f2994c8 commit d41d7a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/table/context.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export type ContextSlots = {
1212
customFilterIcon?: (...args: any[]) => any;
1313
customFilterDropdown?: (...args: any[]) => any;
1414
// 兼容 2.x 的 columns slots 配置
15-
[key: string]: (...args: any[]) => any;
15+
[key: string]: ((...args: any[]) => any) | undefined;
1616
};
1717

1818
export type ContextProps = ComputedRef<ContextSlots>;

0 commit comments

Comments
 (0)