UNPKG

@wfrog/vc

Version:

`自用` 的基于 `element-plus` 二次封装的 `vue3` 组件库。追求在业务场景中,尽可能使用更少的代码量来实现需求。 因此在组件封装上,以 `方便` 为主,打包仅 `esm` 模式。

17 lines (16 loc) 359 B
// src/directives/focus/index.ts var focus_default = { mounted: (el) => { if (el.tagName === "input") { setTimeout(() => el.focus(), 0); } else { const elInput = el.getElementsByTagName("input"); if (elInput.length > 0) { setTimeout(() => elInput[0].focus(), 0); } } } }; export { focus_default as default };