Browse Source

fix: 泛型

master
alan 5 years ago
parent
commit
bd87ff0cd7
  1. 2
      typescript/core/base.ts

2
typescript/core/base.ts

@ -9,7 +9,7 @@ export interface _base {
createWidgets: (items: any, options: any, context: any) => any; createWidgets: (items: any, options: any, context: any) => any;
createItems: (data: any[], innerAttr?: any[], outerAttr?: any[]) => any; createItems: <T, U, K>(data: T[], innerAttr?: U[], outerAttr?: K[]) => (U & T & K)[];
packageItems: (items: any[], layouts: any[]) => any[]; packageItems: (items: any[], layouts: any[]) => any[];

Loading…
Cancel
Save