dtd
Version:
根据数梦工场视觉规范打造的组件库,感谢react-components和ant design
40 lines (39 loc) • 1.19 kB
TypeScript
import * as React from 'react';
import { FormComponentProps } from '../form';
export interface DataObj {
text?: string;
value?: any;
}
export interface SearchDataObj {
type?: string;
name?: string;
label?: string;
data?: DataObj[];
options?: Object;
extra?: object;
}
export interface SearchCigObj {
ctrlSingleRow?: boolean;
showAdvanceCig?: boolean;
formItemCol?: Object;
ctrlStyles?: React.CSSProperties;
searchText?: string;
resetText?: string;
customCtrlGroup?: React.ReactNode;
noCtrlBtn?: boolean;
customCompColSpan?: number;
lineLimit?: number;
customCls?: string;
}
export interface FilterProps extends FormComponentProps {
searchData?: SearchDataObj[];
searchCig?: SearchCigObj;
prefixCls?: string;
className?: string;
initialMax?: number;
fetchDataFunc?: (values?: any, type?: string) => void;
resetFunc?: (values?: any) => void;
useFlexBox?: boolean;
}
declare const _default: React.ComponentClass<Pick<FilterProps, "prefixCls" | "className" | "searchData" | "searchCig" | "initialMax" | "fetchDataFunc" | "resetFunc" | "useFlexBox">, any>;
export default _default;