stdproject/frontend/node_modules/element-plus/es/utils/raf.mjs

8 lines
278 B
JavaScript
Raw Normal View History

2025-05-30 13:43:31 +08:00
import { isClient } from '@vueuse/core';
const rAF = (fn) => isClient ? window.requestAnimationFrame(fn) : setTimeout(fn, 16);
const cAF = (handle) => isClient ? window.cancelAnimationFrame(handle) : clearTimeout(handle);
export { cAF, rAF };
//# sourceMappingURL=raf.mjs.map