28 lines
1.2 KiB
TypeScript
28 lines
1.2 KiB
TypeScript
import React from 'react';
|
|
import { TableProps } from 'antd';
|
|
import { StorageSchema } from 'oak-domain/lib/types/Storage';
|
|
import { OakAbsAttrDef, onActionFnDef, OakExtraActionProps, OakAbsAttrJudgeDef, ED } from '../../types/AbstractComponent';
|
|
import { WebComponentProps, RowWithActions } from '../../types/Page';
|
|
export default function Render(props: WebComponentProps<ED, keyof ED, false, {
|
|
loading: boolean;
|
|
extraActions: OakExtraActionProps[] | ((row: RowWithActions<ED, keyof ED>) => OakExtraActionProps[]);
|
|
entity: string;
|
|
schema: StorageSchema<ED>;
|
|
attributes: OakAbsAttrDef[];
|
|
data: RowWithActions<ED, keyof ED>[];
|
|
disabledOp: boolean;
|
|
tablePagination?: TableProps<RowWithActions<ED, keyof ED>>['pagination'];
|
|
onAction?: onActionFnDef;
|
|
rowSelection?: TableProps<RowWithActions<ED, keyof ED>>['rowSelection'];
|
|
i18n: any;
|
|
hideHeader?: boolean;
|
|
disableSerialNumber?: boolean;
|
|
judgeAttributes: OakAbsAttrJudgeDef[];
|
|
size?: 'large' | 'middle' | 'small';
|
|
scroll?: TableProps<RowWithActions<ED, keyof ED>>['scroll'];
|
|
locale?: TableProps<RowWithActions<ED, keyof ED>>['locale'];
|
|
opWidth?: number;
|
|
}, {
|
|
getColor: (attr: string, value: any) => `#${string}` | undefined;
|
|
}>): React.JSX.Element;
|