ant-design-vue/components/vc-select/Option.tsx

19 lines
564 B
Vue
Raw Normal View History

2021-06-26 09:35:40 +08:00
import type { FunctionalComponent } from 'vue';
2020-10-07 22:49:01 +08:00
import type { DefaultOptionType } from './Select';
2020-10-07 22:49:01 +08:00
export interface OptionProps extends Omit<DefaultOptionType, 'label'> {
2020-10-07 22:49:01 +08:00
/** 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;
Option.displayName = 'ASelectOption';
2020-10-07 22:49:01 +08:00
export default Option;