petals-ui
Version:
Front-end UI components foundation
22 lines (16 loc) • 660 B
text/typescript
import { IInputtableFormControl } from '../../form-control';
import { OptionValueType, SelectValueType } from './aliases';
interface ISelectComponent extends Omit<IInputtableFormControl<SelectValueType>, 'onInput'> {
readonly multiple: boolean;
readonly popupAppendToBody: boolean;
}
interface ISelectOptionComponent {
readonly value: OptionValueType;
readonly label: string;
readonly disabled: boolean;
}
interface ISelectOptionGroupComponent {
readonly label: string; // 组名
readonly disabled: boolean; // 是否将该分组下所有选项置为禁用
}
export { ISelectComponent, ISelectOptionComponent, ISelectOptionGroupComponent };