add all frontend files

This commit is contained in:
2026-01-17 15:16:36 -05:00
parent ff16ae7858
commit e40287e4aa
25704 changed files with 1935289 additions and 0 deletions

28
node_modules/antd/lib/form/hooks/useItemRef.js generated vendored Normal file
View File

@@ -0,0 +1,28 @@
"use strict";
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = useItemRef;
var React = _interopRequireWildcard(require("react"));
var _ref = require("rc-util/lib/ref");
var _context = require("../context");
function useItemRef() {
const {
itemRef
} = React.useContext(_context.FormContext);
const cacheRef = React.useRef({});
function getRef(name, children) {
// Outer caller already check the `supportRef`
const childrenRef = children && typeof children === 'object' && (0, _ref.getNodeRef)(children);
const nameStr = name.join('_');
if (cacheRef.current.name !== nameStr || cacheRef.current.originRef !== childrenRef) {
cacheRef.current.name = nameStr;
cacheRef.current.originRef = childrenRef;
cacheRef.current.ref = (0, _ref.composeRef)(itemRef(name), childrenRef);
}
return cacheRef.current.ref;
}
return getRef;
}