Update from Vibe Studio

This commit is contained in:
Vibe Studio
2026-01-12 09:12:41 +00:00
parent a4605e311a
commit a6ae5199b0
29756 changed files with 2526222 additions and 278 deletions

21
node_modules/antd/es/slider/useRafLock.js generated vendored Normal file
View File

@@ -0,0 +1,21 @@
import * as React from 'react';
import raf from "rc-util/es/raf";
export default function useRafLock() {
const [state, setState] = React.useState(false);
const rafRef = React.useRef(null);
const cleanup = () => {
raf.cancel(rafRef.current);
};
const setDelayState = nextState => {
cleanup();
if (nextState) {
setState(nextState);
} else {
rafRef.current = raf(() => {
setState(nextState);
});
}
};
React.useEffect(() => cleanup, []);
return [state, setDelayState];
}