Initial commit: 云印享后台管理系统

This commit is contained in:
2026-03-29 18:23:02 +08:00
commit f685a8aeed
23346 changed files with 2302962 additions and 0 deletions

28
node_modules/rc-tree/es/useUnmount.js generated vendored Normal file
View File

@@ -0,0 +1,28 @@
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
import * as React from 'react';
import useLayoutEffect from "rc-util/es/hooks/useLayoutEffect";
/**
* Trigger only when component unmount
*/
function useUnmount(triggerStart, triggerEnd) {
var _React$useState = React.useState(false),
_React$useState2 = _slicedToArray(_React$useState, 2),
firstMount = _React$useState2[0],
setFirstMount = _React$useState2[1];
useLayoutEffect(function () {
if (firstMount) {
triggerStart();
return function () {
triggerEnd();
};
}
}, [firstMount]);
useLayoutEffect(function () {
setFirstMount(true);
return function () {
setFirstMount(false);
};
}, []);
}
export default useUnmount;