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
310 B

import{c,u as r}from"./index-f4658ae7.js";function l(t){let o,n=document.body;if(Reflect.has(t,"target")||Reflect.has(t,"props")){const e=t;o=e.props||{},n=e.target||document.body}else o=t;const s=c(o,void 0,!0);return[()=>{const e=r(n);e&&s.open(e)},()=>{s.close()},e=>{s.setTip(e)}]}export{l as useLoading};