ze-react-component-library
Version:
ZeroETP React Component Library
25 lines (24 loc) • 860 B
TypeScript
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>;