import{f as u,w as f}from"./vue-vendor-CxLCUzY4.js";import{l as a,m}from"./index-Cy4uayzW.js";import"./antd-vue-vendor-CahNzUUa.js";import"./vxe-table-vendor-Cdi8WfTx.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};
