jamis
Version:
一种支持通过JSON配置方式生成页面的组件库
18 lines (17 loc) • 815 B
TypeScript
import React from 'react';
import type { RendererProps } from 'jamis-core';
import type { GridColumn, GridSchema, SchemaCollection } from '../types';
interface GridProps extends RendererProps, Omit<GridSchema, 'type' | 'className' | 'columnClassName'> {
itemRender?: (item: any, length: number, props: any) => JSX.Element;
}
export default class Grid<T> extends React.Component<GridProps & T, object> {
static propsList: Array<string>;
static defaultProps: {};
renderChild(region: string, node: SchemaCollection, length: number, props?: any): JSX.Element;
renderColumn: (column: GridColumn, key: number, length: number) => JSX.Element;
renderColumns(columns: GridColumn[]): JSX.Element[] | null;
render(): JSX.Element;
}
export declare class GridRenderer extends Grid<{}> {
}
export {};