完全跑通1.0版本
This commit is contained in:
42
frontend/node_modules/element-plus/lib/hooks/use-aria/index.d.ts
generated
vendored
Normal file
42
frontend/node_modules/element-plus/lib/hooks/use-aria/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
import * as _$vue from "vue";
|
||||
|
||||
//#region ../../packages/hooks/use-aria/index.d.ts
|
||||
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.
|
||||
*/
|
||||
declare const ariaProps: {
|
||||
ariaLabel: StringConstructor;
|
||||
ariaOrientation: {
|
||||
readonly type: _$vue.PropType<string>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
ariaControls: StringConstructor;
|
||||
};
|
||||
declare const useAriaProps: <T extends keyof typeof ariaProps>(arias: Array<T>) => Pick<{
|
||||
ariaLabel: StringConstructor;
|
||||
ariaOrientation: {
|
||||
readonly type: _$vue.PropType<string>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
ariaControls: StringConstructor;
|
||||
}, T>;
|
||||
//#endregion
|
||||
export { AriaProps, ariaProps, useAriaProps };
|
||||
37
frontend/node_modules/element-plus/lib/hooks/use-aria/index.js
generated
vendored
Normal file
37
frontend/node_modules/element-plus/lib/hooks/use-aria/index.js
generated
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
||||
require("../../_virtual/_rolldown/runtime.js");
|
||||
const require_runtime$1 = require("../../utils/vue/props/runtime.js");
|
||||
let lodash_unified = require("lodash-unified");
|
||||
//#region ../../packages/hooks/use-aria/index.ts
|
||||
/**
|
||||
* @deprecated Removed after 3.0.0, Use `AriaProps` instead.
|
||||
*/
|
||||
const ariaProps = require_runtime$1.buildProps({
|
||||
/**
|
||||
* @description native `aria-label` attribute
|
||||
*/
|
||||
ariaLabel: String,
|
||||
/**
|
||||
* @description native `aria-orientation` attribute
|
||||
*/
|
||||
ariaOrientation: {
|
||||
type: String,
|
||||
values: [
|
||||
"horizontal",
|
||||
"vertical",
|
||||
"undefined"
|
||||
]
|
||||
},
|
||||
/**
|
||||
* @description native `aria-controls` attribute
|
||||
*/
|
||||
ariaControls: String
|
||||
});
|
||||
const useAriaProps = (arias) => {
|
||||
return (0, lodash_unified.pick)(ariaProps, arias);
|
||||
};
|
||||
//#endregion
|
||||
exports.ariaProps = ariaProps;
|
||||
exports.useAriaProps = useAriaProps;
|
||||
|
||||
//# sourceMappingURL=index.js.map
|
||||
1
frontend/node_modules/element-plus/lib/hooks/use-aria/index.js.map
generated
vendored
Normal file
1
frontend/node_modules/element-plus/lib/hooks/use-aria/index.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.js","names":["buildProps"],"sources":["../../../../../packages/hooks/use-aria/index.ts"],"sourcesContent":["import { pick } from 'lodash-unified'\nimport { buildProps } from '@element-plus/utils'\n\nexport interface AriaProps {\n /**\n * @description native `aria-label` attribute\n */\n ariaLabel?: string\n /**\n * @description native `aria-orientation` attribute\n */\n ariaOrientation?: 'horizontal' | 'vertical' | 'undefined'\n /**\n * @description native `aria-controls` attribute\n */\n ariaControls?: string\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `AriaProps` instead.\n */\nexport const ariaProps = buildProps({\n /**\n * @description native `aria-label` attribute\n */\n ariaLabel: String,\n /**\n * @description native `aria-orientation` attribute\n */\n ariaOrientation: {\n type: String,\n values: ['horizontal', 'vertical', 'undefined'],\n },\n /**\n * @description native `aria-controls` attribute\n */\n ariaControls: String,\n})\n\nexport const useAriaProps = <T extends keyof typeof ariaProps>(\n arias: Array<T>\n) => {\n return pick<typeof ariaProps, T>(ariaProps, arias)\n}\n"],"mappings":";;;;;;;;AAqBA,MAAa,YAAYA,kBAAAA,WAAW;;;;CAIlC,WAAW;;;;CAIX,iBAAiB;EACf,MAAM;EACN,QAAQ;GAAC;GAAc;GAAY;GAAY;EAChD;;;;CAID,cAAc;CACf,CAAC;AAEF,MAAa,gBACX,UACG;CACH,QAAA,GAAA,eAAA,MAAiC,WAAW,MAAM"}
|
||||
Reference in New Issue
Block a user