/** * @file 所有列表选择类控件的父级,比如 Select、Radios、Checkboxes、 * List、ButtonGroup 等等 */ import {Api, PlainObject, Schema} from '../../types'; import {isEffectiveApi, isApiOutdated, isValidApi} from '../../utils/api'; import {isAlive} from 'mobx-state-tree'; import { anyChanged, autobind, createObject, setVariable, spliceTree, findTreeIndex, getTree, isEmpty, getTreeAncestors } from '../../utils/helper'; import {reaction} from 'mobx'; import { FormControlProps, registerFormItem, FormItemBasicConfig, detectProps as itemDetectProps, FormBaseControl } from './Item'; import {IFormItemStore} from '../../store/formItem'; export type OptionsControlComponent = React.ComponentType; import React from 'react'; import { resolveVariableAndFilter, isPureVariable, dataMapping } from '../../utils/tpl-builtin'; import { Option, OptionProps, normalizeOptions, optionValueCompare } from '../../components/Select'; import {filter} from '../../utils/tpl'; import findIndex from 'lodash/findIndex'; import { SchemaApi, SchemaExpression, SchemaObject, SchemaTokenizeableString } from '../../Schema'; export {Option}; export interface FormOptionsControl extends FormBaseControl { /** * 选项集合 */ options?: Array