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; _compIns: any; innerNotify(args: any[], type: string): Promise; innerSubscribe(fn: Function, type: any, condition?: Function): () => void; getId(autoCreate?: boolean): string; static propsToState(nextProps: any, prevState: any, keys?: string[], options?: { separator?: string; propToState?: (propKey: string, propValue: any) => any; }): any; /** * 默认浅比较,可以在继承类里面重写该方法 * @param nextProps * @param nextState * @param nextContext */ shouldComponentUpdate(nextProps: Readonly

, nextState: Readonly, nextContext: any): boolean; } interface BaseComponentLifecycle { umiDispatch: Dispatch; getDvaState: (ns?: string) => any; getLang(): object; componentAsyncMount?(): Promise; componentAllReady?(...args: any[]): void; closeCheck?(): PromiseType; } /** * 基础页面class实例 */ export declare class BaseComponent

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; get buttonRightName(): any; get busType(): any; get appTitle(): any; get observer(): Observer; getRef(key: any): React.RefObject; removeRef(key: any): void; componentWillUnmount(): void; subscribe(fn: Function, type: any, condition?: Function): () => void; umiDispatch: (action: { type: string; } & IObject) => any; getDvaState: (ns?: string) => any; getLayout: () => any; getGlobalState: () => any; /** * 多语言 */ getLang(key?: any, dv?: any): any; /** * 获取业务注册的报表Tabs * @param data 表单数据 * @returns */ getReportTabs(): Array<{ key: string; code: string; name: string; label: string; url: string; getDynamicParams(formdata: IObject): string; }>; getButtonRights(): any; componentAsyncMount(): Promise; componentAllReady(...args: any[]): void; /** * 关闭时检查,返回false或者对象时,弹出关闭提示框 */ closeCheck(...args: any[]): PromiseType; } export {};