yingsa/admin/node_modules/element-plus/lib/components/select-v2/src/useProps.d.ts
2026-01-20 08:50:50 +08:00

22 lines
634 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").Ref<{
label: string;
value: string;
disabled: string;
options: string;
}>;
getLabel: (option: Option) => any;
getValue: (option: Option) => any;
getDisabled: (option: Option) => any;
getOptions: (option: Option) => any;
};