import { DatePickerProps } from 'antd/es/date-picker/interface'; import { TextAreaProps, InputProps } from 'antd/es/input'; import { InputNumberProps } from 'antd/es/input-number'; import { SelectProps } from 'antd/es/select'; import { CheckboxProps, CheckboxGroupProps } from 'antd/es/checkbox'; import { TreeSelectProps } from 'antd/es/tree-select'; import { CascaderProps } from 'antd/es/cascader'; import { RateProps } from 'antd/es/rate'; export interface LinkData { text?: string; value: string; } export interface CommonProps { onEmitChange?: Function; } export interface ApolloInputProps extends InputProps, CommonProps { value: string | undefined; } export interface ApolloLinkProps extends CommonProps { value: LinkData[]; onChange: Function; columnConfig: any; } export interface ApolloTextAreaProps extends TextAreaProps, CommonProps { value: string | undefined; } export interface ApolloSearchProps extends SelectProps, CommonProps { type: string; request: Function; isMultiple?: boolean; maxCount?: number; } export interface ApolloInputSearchProps extends SelectProps, CommonProps { type: string; request: Function; } export interface ApolloSelectProps extends SelectProps, CommonProps { isMultiple?: boolean; options?: any[]; } export interface ApolloNumberProps extends InputNumberProps, CommonProps {} export interface ApolloDateProps extends DatePickerProps, CommonProps {} export interface ApolloCheckboxProps extends CheckboxProps, CommonProps { label: string; } export interface ApolloCheckboxGroupProps extends CheckboxGroupProps, CommonProps {} export interface ApolloTreeSelectProps extends CommonProps { isMultiple?: boolean; onChange: Function; value: any; request: Function; list?: any[]; } export interface ApolloCascaderProps extends CascaderProps, CommonProps { requestCode: number; request: Function; } export interface ApolloRateProps extends RateProps, CommonProps {}