campus-errand/admin/node_modules/element-plus/lib/hooks/use-aria/index.d.ts
2026-03-01 05:01:47 +08:00

38 lines
1.1 KiB
TypeScript

export interface AriaProps {
/**
* @description native `aria-label` attribute
*/
ariaLabel?: string;
/**
* @description native `aria-orientation` attribute
*/
ariaOrientation?: 'horizontal' | 'vertical' | 'undefined';
/**
* @description native `aria-controls` attribute
*/
ariaControls?: string;
}
/**
* @deprecated Removed after 3.0.0, Use `AriaProps` instead.
*/
export declare const ariaProps: {
ariaLabel: StringConstructor;
ariaOrientation: {
readonly type: import("vue").PropType<string>;
readonly required: false;
readonly validator: ((val: unknown) => boolean) | undefined;
__epPropKey: true;
};
ariaControls: StringConstructor;
};
export declare const useAriaProps: <T extends keyof typeof ariaProps>(arias: Array<T>) => Pick<{
ariaLabel: StringConstructor;
ariaOrientation: {
readonly type: import("vue").PropType<string>;
readonly required: false;
readonly validator: ((val: unknown) => boolean) | undefined;
__epPropKey: true;
};
ariaControls: StringConstructor;
}, T>;