ant-design-vue/components/auto-complete/Option.tsx

18 lines
580 B
Vue
Raw Normal View History

2021-06-26 01:35:40 +00:00
import type { FunctionalComponent } from 'vue';
import type { DefaultOptionType } from '../vc-select/Select';
2021-06-23 13:47:53 +00:00
export interface OptionProps extends Omit<DefaultOptionType, 'label'> {
2021-06-23 13:47:53 +00: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 = 'AAutoCompleteOption';
export default Option;