/* * @Author: zw1995 * @Description: * @Date: 2023-07-28 16:08:38 * @LastEditors: ttheitao * @LastEditTime: 2024-04-16 09:52:52 */ import { DomBase } from "../../Base"; import { ISelectOptionProps, Option } from "./Option"; import { SelectDropdown } from "./SelectDropdown"; import { NaiveInput } from "../../NativeInput"; import { isDefine } from "../../../../Utils"; export interface ISelectProp { // 默认值 value: Array | string | number; // 选项 options: Array; // 多选 multiple: boolean; // 禁用 disabled: boolean; // 事件 - 选项改变时 onChangeCallback: ((value: Array | number | string) => void) | null; // 占位符 placeholder: string, } export class Select extends DomBase { public input: NaiveInput; public value: Array; public options: Array; public allOptions: Array