ant-design-vue
Version:
An enterprise-class UI design language and Vue-based implementation
26 lines (20 loc) • 474 B
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _vue = require("vue");
var useRefs = function useRefs() {
var refs = (0, _vue.ref)(new Map());
var setRef = function setRef(key) {
return function (el) {
refs.value.set(key, el);
};
};
(0, _vue.onBeforeUpdate)(function () {
refs.value = new Map();
});
return [setRef, refs];
};
var _default = useRefs;
exports.default = _default;
;