UNPKG

snowy-designer

Version:

基于Epic-Designer-Pro版本的设计器,可视化开发页面表单

33 lines (32 loc) 542 B
import { ref as s } from "vue"; function D() { const e = s([]), n = s({}); let c = null, i = null; function u(t) { c = t; } function a(t) { i = t; } async function l(t) { if (n.value[t] || !i) return; const f = await i(t); n.value[t] = f; } async function o() { if (!c) return; const t = await c(); e.value = t; } return { dictItems: n, dictList: e, loadDictItem: l, loadDictList: o, setFetchDictItemsFn: a, setFetchDictListFn: u }; } export { D as useDict };