mirror of
https://github.com/Wei-Shaw/claude-relay-service.git
synced 2026-01-25 11:39:54 +00:00
chore: update frontend build for v1.1.81 [skip ci]
This commit is contained in:
22
web/admin-spa/node_modules/element-plus/es/utils/throttleByRaf.mjs
generated
vendored
Normal file
22
web/admin-spa/node_modules/element-plus/es/utils/throttleByRaf.mjs
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
import { cAF, rAF } from './raf.mjs';
|
||||
|
||||
function throttleByRaf(cb) {
|
||||
let timer = 0;
|
||||
const throttle = (...args) => {
|
||||
if (timer) {
|
||||
cAF(timer);
|
||||
}
|
||||
timer = rAF(() => {
|
||||
cb(...args);
|
||||
timer = 0;
|
||||
});
|
||||
};
|
||||
throttle.cancel = () => {
|
||||
cAF(timer);
|
||||
timer = 0;
|
||||
};
|
||||
return throttle;
|
||||
}
|
||||
|
||||
export { throttleByRaf };
|
||||
//# sourceMappingURL=throttleByRaf.mjs.map
|
||||
Reference in New Issue
Block a user