import * as React from "react"; import { RefObject } from "react"; import "./index.css"; import { ActionConfig, DtmplData, DtmplConfig, DoEditParam } from "../../tmpl/interface"; import { FormInstance } from "antd/lib/form/hooks/useForm"; import { SizeType } from "antd/lib/config-provider/SizeContext"; import { LocaleContext } from "../../locale/LocaleProvider"; export type ActionButtonIconType = "icon" | "icon-title" | "title"; export type ActionButtonType = "primary-block" | "dashed" | "primary"; export type ActionButtonHiddenType = "hidden" | "disabled"; interface ActionProps { serverKey?: string; disabled?: boolean; actionConfig: ActionConfig; data?: DtmplData[] | object[]; doAction: (string: any, Array: any, object: any) => void; serial?: number; buttonType?: ActionButtonType; hiddenType?: ActionButtonHiddenType; buttonSize?: SizeType; iconType: ActionButtonIconType; formRef?: RefObject; loading?: boolean; doEdit?: (doEditParam: DoEditParam) => void; } interface ActionState { popoverOpen?: boolean; appDtmplConfig?: DtmplConfig; formRef?: RefObject; } export default class Action extends React.PureComponent { static defaultProps: { hiddenType: string; buttonSize: string; iconType: string; loading: boolean; }; static contextType: React.Context<{ locale: import("../../locale/langMp").LocaleType; langPkg: any; availableLang: string[]; changeLocale: (locale: import("../../locale/langMp").LocaleType) => void; siderCollapsed: boolean; changeSiderCollapsed: () => void; t: (...strs: string[]) => string; translate: (...strs: string[]) => string; getServiceLangStr?: () => string; compactTheme?: boolean; changeCompactTheme?: () => void; screenfull?: boolean; changeScreenfull?: () => void; }>; context: React.ContextType; state: { popoverOpen: boolean; appDtmplConfig: any; formRef: React.RefObject>; }; componentDidMount(): void; componentDidUpdate(prevProps: any): void; isShow: () => boolean; getFormRef: () => React.RefObject>; getValue: () => {}; onOk: (value: object) => void; onCancel: () => void; onValuesChange: (value: object, allValues: any) => void; getButtonType: () => "default" | "primary" | "dashed" | "link" | "text"; blockButton: () => boolean; formButton: () => React.JSX.Element; getTitle: () => any; getCodes: () => any[]; withoutFormButton: () => React.JSX.Element; renderEditButton: () => React.JSX.Element; render(): React.JSX.Element; } export {}; //# sourceMappingURL=index.d.ts.map