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

19
node_modules/antd/lib/_util/hooks/useSyncState.js generated vendored Normal file
View File

@@ -0,0 +1,19 @@
"use strict";
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.useSyncState = void 0;
var React = _interopRequireWildcard(require("react"));
var _useForceUpdate = require("./useForceUpdate");
const useSyncState = initialValue => {
const ref = React.useRef(initialValue);
const [, forceUpdate] = (0, _useForceUpdate.useForceUpdate)();
return [() => ref.current, newValue => {
ref.current = newValue;
// re-render
forceUpdate();
}];
};
exports.useSyncState = useSyncState;