Files
pig-farm-controller-fe/node_modules/element-plus/es/components/select-v2/src/useProps.d.ts
2025-09-19 14:25:20 +08:00

22 lines
642 B
TypeScript

import type { SelectV2Props } from './token';
import type { Option } from './select.types';
export interface Props {
label?: string;
value?: string;
disabled?: string;
options?: string;
}
export declare const defaultProps: Required<Props>;
export declare function useProps(props: Pick<SelectV2Props, 'props'>): {
aliasProps: import("vue").ComputedRef<{
label: string;
value: string;
disabled: string;
options: string;
}>;
getLabel: (option: Option) => any;
getValue: (option: Option) => any;
getDisabled: (option: Option) => any;
getOptions: (option: Option) => any;
};