2021-06-26 01:35:40 +00:00
|
|
|
import type { FunctionalComponent } from 'vue';
|
2020-10-07 14:49:01 +00:00
|
|
|
|
2021-06-26 01:35:40 +00:00
|
|
|
import type { OptionCoreData } from './interface';
|
2020-10-07 14:49:01 +00:00
|
|
|
|
|
|
|
export interface OptionProps extends Omit<OptionCoreData, 'label'> {
|
|
|
|
/** Save for customize data */
|
|
|
|
[prop: string]: any; // eslint-disable-line @typescript-eslint/no-explicit-any
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface OptionFC extends FunctionalComponent<OptionProps> {
|
|
|
|
/** Legacy for check if is a Option Group */
|
|
|
|
isSelectOption: boolean;
|
|
|
|
}
|
|
|
|
|
|
|
|
const Option: OptionFC = () => null;
|
|
|
|
Option.isSelectOption = true;
|
2020-12-25 05:02:08 +00:00
|
|
|
Option.displayName = 'ASelectOption';
|
2020-10-07 14:49:01 +00:00
|
|
|
export default Option;
|