UNPKG

element-plus

Version:

A Component Library for Vue 3

1 lines 398 B
{"version":3,"file":"index.mjs","sources":["../../../../../packages/hooks/use-focus/index.ts"],"sourcesContent":["import type { Ref } from 'vue'\n\nexport default (el: Ref<HTMLElement>) => {\n return {\n focus: () => {\n el.value?.focus?.()\n },\n }\n}\n"],"names":[],"mappings":"AAEA,eAAe,CAAC,OAAyB;AACvC,SAAO;AAAA,IACL,OAAO,MAAM;AAJjB;AAKM,qBAAG,UAAH,mBAAU,UAAV;AAAA;AAAA;AAAA;;;;"}