choerodon-ui
Version:
An enterprise-class UI design language and React-based implementation
40 lines (39 loc) • 1.42 kB
TypeScript
import { ReactElement, ReactNode } from 'react';
import { BoardCustomized } from './Board';
import { cardCommandsProps } from './CardCommand';
import { Commands } from '../table/Table';
import DataSet from '../data-set';
export interface BoardContextValue {
prefixCls?: string | undefined;
defaultActiveKey?: string | undefined;
actuallyDefaultActiveKey?: string | undefined;
propActiveKey?: string | undefined;
keyboard?: boolean | undefined;
autoQuery?: boolean | undefined;
getConfig: Function;
getProPrefixCls: Function;
saveCustomized: (customized: BoardCustomized) => void | any;
displayFields?: any;
activeKey?: string | undefined;
customizedCode?: string;
changeActiveKey?: (activeKey: string) => void;
children?: ReactNode;
defaultChangeable?: boolean | undefined;
rippleDisabled?: boolean | undefined;
optionDS?: DataSet;
customizedDS?: DataSet;
dataSet?: DataSet;
queryFields: ReactElement<any>[];
command?: Commands[] | ((props: cardCommandsProps) => Commands[]);
renderCommand?: Function;
commandsLimit?: number;
renderButtons?: Function;
onConfigChange?: (props: {
config: any;
currentViewDS: DataSet;
}) => void;
onChange?: Function;
viewTypeVisible?: boolean | object;
}
declare const BoardContext: import("react").Context<BoardContextValue>;
export default BoardContext;