jamis
Version:
一种支持通过JSON配置方式生成页面的组件库
17 lines (16 loc) • 1.02 kB
TypeScript
import React from 'react';
import type { ActionObject } from 'jamis-core';
import type { IColumn, IRow, RenderCellProps, TableProps } from './types';
export declare const useRenderRows: (props: TableProps, { handleCheck, handleAction, syncSelected, renderCell }: {
handleAction: (e: React.UIEvent<any> | undefined, action: ActionObject, ctx: object) => void;
renderCell: (region: "placeholder" | string, column: IColumn | (() => JSX.Element | null), row: IRow, cellProps: RenderCellProps, ignoreDrag?: boolean) => React.ReactNode;
syncSelected: () => void;
handleCheck: (item: IRow, checked: boolean, shift?: boolean) => Promise<void>;
}) => {
renderRows: (rows?: IRow[], columns?: IColumn[], rowProps?: {
parent?: any;
regionPrefix?: string;
ignoreFootableContent?: boolean;
renderCell?: (region: "placeholder" | string, column: IColumn | (() => JSX.Element | null), row: IRow, cellProps: RenderCellProps, ignoreDrag?: boolean) => React.ReactNode;
}) => any[];
};