import { forwardRef } from 'react'; import type { SelectProps } from 'antd'; import { ComponentGeneralProps, FormItemProps, LowcodeComponentProps } from '@/types'; import { InputState } from '@/constants'; export interface Option { value: string; label: string; children?: Option[]; } export interface InnerRegionSelectProps extends ComponentGeneralProps { placeholder?: string; state?: InputState; allowClear?: boolean; showSearch?: boolean; variant?: SelectProps['variant']; onChange?: (value: Record) => void; onSelect?: (value: string[] | undefined, options: Array> | undefined) => void; value: Record; } export interface RsRegionSelectProps extends FormItemProps, ComponentGeneralProps, LowcodeComponentProps, InnerRegionSelectProps { forwardRef?: typeof forwardRef; }