2021-06-26 09:35:40 +08:00
|
|
|
import type { FunctionalComponent } from 'vue';
|
2020-10-07 22:49:01 +08:00
|
|
|
|
2022-01-21 21:58:10 +08:00
|
|
|
import type { DefaultOptionType } from './Select';
|
2020-10-07 22:49:01 +08:00
|
|
|
|
2022-01-21 21:58:10 +08:00
|
|
|
export type OptGroupProps = Omit<DefaultOptionType, 'options'>;
|
2020-10-07 22:49:01 +08:00
|
|
|
|
|
|
|
export interface OptionGroupFC extends FunctionalComponent<OptGroupProps> {
|
|
|
|
/** Legacy for check if is a Option Group */
|
|
|
|
isSelectOptGroup: boolean;
|
|
|
|
}
|
|
|
|
|
|
|
|
const OptGroup: OptionGroupFC = () => null;
|
|
|
|
OptGroup.isSelectOptGroup = true;
|
2020-12-25 13:02:08 +08:00
|
|
|
OptGroup.displayName = 'ASelectOptGroup';
|
2020-10-07 22:49:01 +08:00
|
|
|
export default OptGroup;
|