You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
956 B
1 line
956 B
{"ast":null,"code":"const useFocus = el => {\n return {\n focus: () => {\n var _a, _b;\n (_b = (_a = el.value) == null ? void 0 : _a.focus) == null ? void 0 : _b.call(_a);\n }\n };\n};\nexport { useFocus };","map":{"version":3,"names":["useFocus","el","focus","_a","_b","value","call"],"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":"AAAY,MAACA,QAAQ,GAAIC,EAAE,IAAK;EAC9B,OAAO;IACLC,KAAK,EAAEA,CAAA,KAAM;MACX,IAAIC,EAAE,EAAEC,EAAE;MACV,CAACA,EAAE,GAAG,CAACD,EAAE,GAAGF,EAAE,CAACI,KAAK,KAAK,IAAI,GAAG,KAAK,CAAC,GAAGF,EAAE,CAACD,KAAK,KAAK,IAAI,GAAG,KAAK,CAAC,GAAGE,EAAE,CAACE,IAAI,CAACH,EAAE,CAAC;IACvF;EACA,CAAG;AACH","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} |