import{f as u,w as f}from"./vue-vendor-CxLCUzY4.js";import{l as a,m}from"./index-B_2CoVdl.js";import"./antd-vue-vendor-CDWW6V_M.js";import"./vxe-table-vendor-B5h3MVdD.js";function T(e,o,r=!1){if(!a(e))throw new Error("handle is not Function!");const{readyRef:t,stop:i,start:n}=c(o);return r?e():f(t,s=>{s&&e()},{immediate:!1}),{readyRef:t,stop:i,start:n}}function c(e){const o=u(!1);let r;function t(){o.value=!1,r&&window.clearTimeout(r)}function i(){t(),r=setTimeout(()=>{o.value=!0},e)}return i(),m(t),{readyRef:o,stop:t,start:i}}export{T as useTimeoutFn,c as useTimeoutRef};
