mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-03 04:27:41 +08:00
19 lines
561 B
Vue
19 lines
561 B
Vue
import type { FunctionalComponent } from 'vue';
|
|
|
|
import type { OptionCoreData } from './interface';
|
|
|
|
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;
|
|
Option.displayName = 'ASelectOption';
|
|
export default Option;
|