UNPKG

antd-curd

Version:

基于 ant design 、 dva 的增删改查页面组件

30 lines (29 loc) 1.47 kB
import React from 'react'; import { WrappedFormUtils, FormComponentProps } from 'antd/lib/form/Form'; import { ItemConfig } from 'antd-form-mate/dist/lib/props'; import { RowProps } from 'antd/lib/row'; import { ColProps } from 'antd/lib/col'; import { ConfigConsumerProps } from '../../config-provider/context'; export declare type QueryPanelLocale = 'collapse' | 'expand' | 'search' | 'reset'; export interface QueryPanelProps extends FormComponentProps { queryArgsConfig: ItemConfig[]; onSearch?: (fieldsValue: any) => void; onReset?: () => void; maxCount?: number; rowProps?: RowProps; colProps?: ColProps; onValuesChange?: (changedValues: any, allValues: any) => void; updateSearchValue?: (fieldsValue: any) => any; getFormInstance?: (form: WrappedFormUtils) => void; } export interface InternalQueryPanelProps extends QueryPanelProps { acLocale?: { [k in QueryPanelLocale]?: any; }; createFormItemsFn: ConfigConsumerProps['createFormItemsFn']; } declare class QueryPanel extends React.Component<QueryPanelProps> { render(): JSX.Element; } declare const _default: import("_antd@3.26.3@antd/lib/form/interface").ConnectedComponentClass<typeof QueryPanel, Pick<QueryPanelProps, "getFormInstance" | "wrappedComponentRef" | "onReset" | "onSearch" | "queryArgsConfig" | "maxCount" | "rowProps" | "colProps" | "onValuesChange" | "updateSearchValue">>; export default _default;