/** * 表格渲染模版 */ import React from 'react'; import { NotifyConfig } from 'ukelli-ui/core/notification/notification'; import ReportTemplate from './records-template'; import { RecordActionBtn, ReportActionBtn } from './types'; export interface HOCReportRenderClass { /** 数据表的每一项(each row)的操作按钮 */ recordActionBtns?: RecordActionBtn; /** 表格中的操作按钮 */ reportActionBtns?: ReportActionBtn; } /** * HOCReportRender 接受 3 个参数 * * @param {class} Action 具体业务 action * @param {object} [passProps={}] 传给模版引擎的 props * @param {class} [TemplatEngin=ReportTemplate] 自定义的模版引擎 * @return {class} 返回用于 react 的类 */ declare function HOCReportRender
(Action: React.ComponentClass
, passProps?: {}, TemplatEngin?: typeof ReportTemplate): {
new (props: P, context?: any): {
/** 对于表格主体的 ref */
ReportRef: any;
/** 数据表的每一项(each row)的操作按钮 */
recordActionBtns: any;
/** 表格中的操作按钮 */
reportActionBtns: any;
getRecordBtns: (contentResult: any, record: any, mapper: any, rowIdx: any, ...other: any[]) => any[] | "-";
/** 用于记录所有的按钮 */
powerFilterForBtn: (btnId: any) => boolean;
reportBtnFilter: () => any[] | null;
getActionBtn: (...args: any[]) => void;
showDesc: (showOptions: NotifyConfig) => void;
saveReport: (e: any) => void;
render(): JSX.Element;
context: any;
setState & Readonly<{
children?: React.ReactNode;
}>;
state: Readonly , nextState: Readonly , prevState: Readonly , prevState: Readonly , nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly , nextContext: any): void;
componentWillUpdate?(nextProps: Readonly , nextState: Readonly , nextState: Readonly | undefined;
contextType?: React.Context | undefined;
displayName?: string | undefined;
getDerivedStateFromProps?: React.GetDerivedStateFromProps | undefined;
getDerivedStateFromError?: React.GetDerivedStateFromError | undefined;
} | null;
declare function GeneralReportRender(...args: any[]): void;
export { GeneralReportRender, HOCReportRender };