UNPKG

el-plus-powerful-form

Version:

## [DOCS](https://peng-xiao-shuai.github.io/vite-vue-admin-docs/zh-CN/component_directive/component/powerful-form-doc.html)

28 lines (27 loc) 816 B
import { onMounted as l, nextTick as c, getCurrentInstance as u, ref as f } from "vue"; const p = (r, n = ((t) => (t = u()) == null ? void 0 : t.proxy)()) => new Promise((s) => { const o = (e) => { if (Object.keys(e.refs).includes(r)) { s(e.refs[r]); return; } else if (e.parent) o(e.parent); else { s(null); return; } }; l(() => { c(() => { n ? o(n.$) : console.error("错误,proxy 空"); }); }); }), y = (r, n = ((t) => (t = u()) == null ? void 0 : t.proxy)()) => { const s = f(null), o = (e) => Object.keys(e.refs).includes(r) ? e.refs[r] : e.parent ? o(e.parent) : null; return n ? s.value = o(n.$) : console.error("错误,proxy 空"), s; }; export { p as useAsyncGetRefs, y as useGetRefs }; //# sourceMappingURL=useGetRefs.mjs.map