import React from 'react'; import { OptionsControlProps, Option } from 'amis-core'; import { Api, ActionObject } from 'amis-core'; import { FormOptionsSchema, SchemaApi } from '../../Schema'; import { TransferControlSchema } from './Transfer'; import type { SchemaClassName } from '../../Schema'; import type { TooltipObject } from 'amis-ui/lib/components/TooltipWrapper'; /** * Select 下拉选择框。 * 文档:https://baidu.gitee.io/amis/docs/components/form/select */ export interface SelectControlSchema extends FormOptionsSchema { type: 'select' | 'multi-select'; /** * 自动完成 API,当输入部分文字的时候,会将这些文字通过 ${term} 可以取到,发送给接口。 * 接口可以返回匹配到的选项,帮助用户输入。 */ autoComplete?: SchemaApi; /** * 可以自定义菜单展示。 */ menuTpl?: string; /** * 当在value值未匹配到当前options中的选项时,是否value值对应文本飘红显示 */ showInvalidMatch: boolean; /** * 边框模式,全边框,还是半边框,或者没边框。 */ borderMode?: 'full' | 'half' | 'none'; /** * 勾选展示模式 */ selectMode?: 'table' | 'group' | 'tree' | 'chained' | 'associated'; /** * 当 selectMode 为 associated 时用来定义左侧的选项 */ leftOptions?: Array