bbf8946bd8aae31d80ef8b212c6922cc8ed7f6f7d31821d2da34e3421d6752fc7e35d1263e9876445e7f54b6d2a11210e58802a8e29203255c01d7294eb646 1012 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. 'use strict';
  2. Object.defineProperty(exports, '__esModule', { value: true });
  3. var vue = require('vue');
  4. var utils = require('../utils.js');
  5. var headerRow = require('../components/header-row.js');
  6. function _isSlot(s) {
  7. return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !vue.isVNode(s);
  8. }
  9. const HeaderRenderer = ({
  10. columns,
  11. columnsStyles,
  12. headerIndex,
  13. style,
  14. headerClass,
  15. headerProps,
  16. ns
  17. }, {
  18. slots
  19. }) => {
  20. const param = {
  21. columns,
  22. headerIndex
  23. };
  24. const kls = [ns.e("header-row"), utils.tryCall(headerClass, param, ""), {
  25. [ns.is("customized")]: Boolean(slots.header)
  26. }];
  27. const extraProps = {
  28. ...utils.tryCall(headerProps, param),
  29. columnsStyles,
  30. class: kls,
  31. columns,
  32. headerIndex,
  33. style
  34. };
  35. return vue.createVNode(headerRow["default"], extraProps, _isSlot(slots) ? slots : {
  36. default: () => [slots]
  37. });
  38. };
  39. var Header = HeaderRenderer;
  40. exports["default"] = Header;
  41. //# sourceMappingURL=header.js.map