Item.js 710 B

12345678910111213141516171819202122232425
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.default = void 0;
  6. var _vue = require("vue");
  7. var _propsUtil = require("../_util/props-util");
  8. var Item = function Item(_ref, _ref2) {
  9. var _slots$default;
  10. var setRef = _ref.setRef;
  11. var slots = _ref2.slots;
  12. var children = (0, _propsUtil.flattenChildren)((_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots));
  13. return children && children.length ? (0, _vue.cloneVNode)(children[0], {
  14. ref: setRef
  15. }) : children;
  16. };
  17. Item.props = {
  18. setRef: {
  19. type: Function,
  20. default: function _default() {}
  21. }
  22. };
  23. var _default2 = Item;
  24. exports.default = _default2;