UNPKG

snowy-designer

Version:

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

2 lines (1 loc) 460 B
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("vue");function f(){const i=s.ref([]),e=s.ref({});let n=null,c=null;function u(t){n=t}function a(t){c=t}async function l(t){if(e.value[t]||!c)return;const o=await c(t);e.value[t]=o}async function r(){if(!n)return;const t=await n();i.value=t}return{dictItems:e,dictList:i,loadDictItem:l,loadDictList:r,setFetchDictItemsFn:a,setFetchDictListFn:u}}exports.useDict=f;