{"version":3,"file":"useSelectMethods.mjs","sources":["../../../../../../packages/element/select/src/hooks/useSelectMethods.ts"],"sourcesContent":["import { getCurrentInstance } from 'vue'\nimport type { ComponentInternalInstance } from 'vue'\n\ninterface SelectMethods {\n  focus: () => void\n  blur: () => void\n}\n\nexport function useSelectMethods() {\n  const { proxy: ctx } = getCurrentInstance() as ComponentInternalInstance\n\n  const focus = () => {\n    (ctx?.$refs.selectRef as SelectMethods).focus()\n  }\n\n  const blur = () => {\n    (ctx?.$refs.selectRef as SelectMethods).blur()\n  }\n\n  return { focus, blur }\n}\n"],"names":["useSelectMethods","ctx","getCurrentInstance"],"mappings":";AAQO,SAAAA,IAAA;AACL,QAAA,EAAA,OAAAC,EAAA,IAAAC,EAAA;AAUA,SAAA,EAAA,OARA,MAAA;AACE,KAAAD,KAAA,gBAAAA,EAAA,MAAA,WAAA,MAAA;AAAA,EAA8C,GAOhD,MAJA,MAAA;AACE,KAAAA,KAAA,gBAAAA,EAAA,MAAA,WAAA,KAAA;AAAA,EAA6C,EAG/C;AACF;"}