import type { ModalFuncProps } from 'antd/lib/modal'; import React from 'react'; import { OType } from '../enum'; import type { IObject, PromiseType } from '../interface'; import { Observer } from '../util'; type Dispatch
void> = (action: { type: string; payload?: P; callback?: C; [key: string]: any; }) => any; /** * 基础组件class库 */ export declare class UdpComponent
extends React.Component
{
_primaryKey: string;
state: S;
outRef: React.RefObject , nextState: Readonly extends UdpComponent implements BaseComponentLifecycle {
private _observer;
private customHooks;
private _refMaps;
OType: typeof OType;
constructor(props: any);
get parent(): any;
refreshButtonRights: (params?: {
orgId?: string;
pageName?: string;
projectId?: string;
funcName?: string;
forceUpdate?: boolean;
}) => any;
setButtonRights: (params: {
disableBtn?: string[];
hideBtn?: string[];
replace?: boolean;
}) => any;
subscribeButtonRights: (callback: any, type: string, condition?: Function) => any;
getPageButtonRightKey: () => any;
createHooks: () => Promise, nextContext: any): boolean;
}
interface BaseComponentLifecycle {
umiDispatch: Dispatch;
getDvaState: (ns?: string) => any;
getLang(): object;
componentAsyncMount?(): Promise