You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
557 B
2 lines
557 B
|
1 year ago
|
import{q as g,E as m,a9 as u,S as f,ab as y}from"./index-3679850f.js";const h=n=>new Promise((t,e)=>{if(!n)return e();g("designById",{id:n}).then(a=>{var r;const o=a.data,s=m(o.data);(r=s.config)!=null&&r.style&&u("screenStyle",s.config.style,!0),t(s)}).catch(a=>{f.error(a.message||"加载异常"),e()})}),p=(n,t,e,a)=>new Promise((o,s)=>{let r={};typeof e=="function"&&(r=e({})),g(n,r,{method:a}).then(c=>{const i=c.data;let l;t&&(typeof t=="function"?l=t(i):l=y(t,i)),o(l||i)}).catch(c=>{f.error(c.message||"加载异常"),s()})});export{p as a,h as g};
|