index.js 616 B

123456789101112131415161718192021222324252627282930313233343536
  1. "use strict";
  2. exports.__esModule = true;
  3. exports["default"] = void 0;
  4. var _utils = require("../utils");
  5. var _use = (0, _utils.use)('badge-group'),
  6. sfc = _use[0],
  7. bem = _use[1];
  8. var _default = sfc({
  9. props: {
  10. activeKey: {
  11. type: [Number, String],
  12. "default": 0
  13. }
  14. },
  15. provide: function provide() {
  16. return {
  17. vanBadgeGroup: this
  18. };
  19. },
  20. data: function data() {
  21. return {
  22. badges: []
  23. };
  24. },
  25. render: function render(h) {
  26. return h("div", {
  27. "class": [bem(), 'van-hairline--top-bottom']
  28. }, [this.slots()]);
  29. }
  30. });
  31. exports["default"] = _default;