antd-mobile-alita
Version:
基于 React 的移动设计规范实现
16 lines (15 loc) • 467 B
TypeScript
import * as React from 'react';
export interface DataItem {
icon?: any;
text?: any;
[key: string]: any;
}
export interface GridPropsType {
data?: Array<DataItem | undefined>;
hasLine?: boolean;
columnNum?: number;
isCarousel?: boolean;
carouselMaxRow?: number;
onClick?: (dataItem: DataItem | undefined, itemIndex: number) => void;
renderItem?: (dataItem: DataItem | undefined, itemIndex: number) => React.ReactElement<any>;
}