antd-curd
Version:
基于 ant design 、 dva 的增删改查页面组件
32 lines (31 loc) • 1.53 kB
TypeScript
import React from 'react';
import { ColProps } from "antd/lib/col";
import { ModalProps } from 'antd/lib/modal';
import { FormComponentProps } from 'antd/lib/form';
import { WrappedFormUtils } from 'antd/lib/form/Form';
import { ItemConfig } from 'antd-form-mate/dist/lib/props';
export interface PopupProps extends FormComponentProps {
loading?: boolean;
setItemsConfig: (form: WrappedFormUtils) => ItemConfig[];
itemsLayout?: {
labelCol?: ColProps;
wrapperCol?: ColProps;
};
getFormInstance?: (form: WrappedFormUtils) => void;
mode?: string;
onOk?: (fieldsValue: any) => void;
onClose?: () => void;
visible?: boolean;
afterClose?: () => void;
title?: string;
}
export declare type CustomModalProps = Omit<ModalProps, 'title' | 'visible' | 'onOk' | 'onCancel' | 'afterClose'>;
export interface DetailModalProps extends PopupProps {
modalProps?: CustomModalProps;
itemsWrapperProps?: React.HTMLAttributes<any>;
cols?: 1 | 2 | 3 | 4 | 6 | 8 | 12 | 24;
children?: JSX.Element;
}
declare function DetailModal(props: DetailModalProps): JSX.Element;
declare const _default: import("_antd@3.26.3@antd/lib/form/interface").ConnectedComponentClass<typeof DetailModal, Pick<DetailModalProps, "children" | "loading" | "title" | "setItemsConfig" | "onOk" | "itemsLayout" | "getFormInstance" | "mode" | "onClose" | "visible" | "afterClose" | "wrappedComponentRef" | "modalProps" | "itemsWrapperProps" | "cols">>;
export default _default;