UNPKG

ze-react-component-library

Version:
25 lines (24 loc) 860 B
import type { InputNumberProps, DatePickerProps, InputProps, SelectProps } from 'antd'; import type { HTMLAttributes } from 'react'; import type { OperatorType } from './ZEOperator'; export declare type ZEOperatorValueType = { operator?: OperatorType; value?: string | string[] | boolean | null | number | number; }; export declare type ZEOperatorCTypeProps = { Number: InputNumberProps; Date: DatePickerProps; String: InputProps; Boolean: any; }; export declare type ZEOperatorProps = { type: keyof ZEOperatorCTypeProps; operatorProps?: Omit<SelectProps<string>, 'options'> & { options?: OperatorType[]; }; valueProps?: any; value?: ZEOperatorValueType; initialValue?: ZEOperatorValueType; onChange?: (value: ZEOperatorValueType) => void; disabled?: boolean; } & HTMLAttributes<HTMLDivElement>;