完全跑通1.0版本

This commit is contained in:
2026-05-26 12:56:03 +08:00
parent 2ece5174a7
commit 93c714a93b
11557 changed files with 1648225 additions and 36 deletions

View File

@@ -0,0 +1,10 @@
import { Ref } from "vue";
//#region ../../packages/hooks/use-focus/index.d.ts
declare const useFocus: (el: Ref<{
focus: () => void;
} | null>) => {
focus: () => void;
};
//#endregion
export { useFocus };

View File

@@ -0,0 +1,10 @@
//#region ../../packages/hooks/use-focus/index.ts
const useFocus = (el) => {
return { focus: () => {
el.value?.focus?.();
} };
};
//#endregion
export { useFocus };
//# sourceMappingURL=index.mjs.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"index.mjs","names":[],"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"],"mappings":";AAEA,MAAa,YACX,OAGG;CACH,OAAO,EACL,aAAa;EACX,GAAG,OAAO,SAAS;IAEtB"}