测试
This commit is contained in:
6
frontend/node_modules/element-plus/lib/hooks/use-focus/index.d.ts
generated
vendored
Normal file
6
frontend/node_modules/element-plus/lib/hooks/use-focus/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
import type { Ref } from 'vue';
|
||||
export declare const useFocus: (el: Ref<{
|
||||
focus: () => void;
|
||||
} | null>) => {
|
||||
focus: () => void;
|
||||
};
|
||||
15
frontend/node_modules/element-plus/lib/hooks/use-focus/index.js
generated
vendored
Normal file
15
frontend/node_modules/element-plus/lib/hooks/use-focus/index.js
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
|
||||
const useFocus = (el) => {
|
||||
return {
|
||||
focus: () => {
|
||||
var _a, _b;
|
||||
(_b = (_a = el.value) == null ? void 0 : _a.focus) == null ? void 0 : _b.call(_a);
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
exports.useFocus = useFocus;
|
||||
//# sourceMappingURL=index.js.map
|
||||
1
frontend/node_modules/element-plus/lib/hooks/use-focus/index.js.map
generated
vendored
Normal file
1
frontend/node_modules/element-plus/lib/hooks/use-focus/index.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.js","sources":["../../../../../packages/hooks/use-focus/index.ts"],"sourcesContent":["import type { Ref } from 'vue'\n\nexport const useFocus = (\n el: Ref<{\n focus: () => void\n } | null>\n) => {\n return {\n focus: () => {\n el.value?.focus?.()\n },\n }\n}\n"],"names":[],"mappings":";;;;AAAY,MAAC,QAAQ,GAAG,CAAC,EAAE,KAAK;AAChC,EAAE,OAAO;AACT,IAAI,KAAK,EAAE,MAAM;AACjB,MAAM,IAAI,EAAE,EAAE,EAAE,CAAC;AACjB,MAAM,CAAC,EAAE,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC,KAAK,KAAK,IAAI,GAAG,KAAK,CAAC,GAAG,EAAE,CAAC,KAAK,KAAK,IAAI,GAAG,KAAK,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACxF,KAAK;AACL,GAAG,CAAC;AACJ;;;;"}
|
||||
Reference in New Issue
Block a user