/** * Select 下拉选择框。 */ import { CSSProperties } from 'react'; import { OptionType, OptionProps } from './types'; import { TransferControl } from '../transfer2'; export declare type Option = OptionType; export interface Options extends Array { } export interface SelectProps extends OptionProps { style?: CSSProperties; /** * 弹窗位置 */ placement?: ''; /** * 选中值 */ value?: any; /** * 选项的自定义展示。 */ labelTpl: string; /** * 选项的自定义展示。 */ valueTpl: string; /** * 当在value值未匹配到当前options中的选项时,是否value值对应文本飘红显示 */ showInvalidMatch: boolean; /** * 边框模式,全边框,还是半边框,或者没边框。 */ borderMode?: 'full' | 'half' | 'none'; /** * 勾选展示模式 */ mode: 'table' | 'group' | 'tree' | 'chained' | 'associated' | 'list' | 'select'; /** * 当 mode 为 associated 时用来定义左侧的选项 */ leftOptions?: Array