import { forwardRef, ReactNode } from 'react'; import { ComponentGeneralProps, FormItemProps, LowcodeComponentProps, SelectProps } from '@/types'; import { InputState } from '@/constants'; export interface LinkageConfig { apiUrl?: string; options?: SelectProps['options']; params?: Record; mapping?: (data: any) => SelectProps['options']; } interface autoBackFillProps { ket?: string; optionsField?: string; fillInField?: string; } export interface RsSelectSharedProps { mode?: 'multiple' | 'single'; customOptions?: SelectProps['options']; typeOptions?: 'custom' | 'remote'; allowClear?: SelectProps['allowClear']; showSearch?: SelectProps['showSearch']; optionsUrl?: string; select_titleField?: string; select_valueField?: string; autoBackFill?: autoBackFillProps[]; } export interface InnerSelectProps extends ComponentGeneralProps, RsSelectSharedProps, SelectProps { labelName?: string; state?: InputState; isUseInTable?: boolean; defaultValue?: string[]; linkageConfig?: LinkageConfig; options?: SelectProps['options']; componentId?: string; variant?: SelectProps['variant']; optionFilterProp?: SelectProps['optionFilterProp']; onChange?: (value: string | string[]) => void; onFocus?: () => void; onBlur?: () => void; autoFocus?: boolean; disabled?: boolean; filterOption?: (input: string, option: any) => boolean; children?: ReactNode; id?: string; } export interface RsSelectProps extends FormItemProps, ComponentGeneralProps, LowcodeComponentProps, RsSelectSharedProps, InnerSelectProps { forwardRef?: typeof forwardRef; } export {};