summary.js 883 B

12345678910111213141516171819202122232425262728293031323334
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.default = void 0;
  6. var _cssinjs = require("@ant-design/cssinjs");
  7. const genSummaryStyle = token => {
  8. const {
  9. componentCls,
  10. lineWidth,
  11. tableBorderColor,
  12. calc
  13. } = token;
  14. const tableBorder = `${(0, _cssinjs.unit)(lineWidth)} ${token.lineType} ${tableBorderColor}`;
  15. return {
  16. [`${componentCls}-wrapper`]: {
  17. [`${componentCls}-summary`]: {
  18. position: 'relative',
  19. zIndex: token.zIndexTableFixed,
  20. background: token.tableBg,
  21. '> tr': {
  22. '> th, > td': {
  23. borderBottom: tableBorder
  24. }
  25. }
  26. },
  27. [`div${componentCls}-summary`]: {
  28. boxShadow: `0 ${(0, _cssinjs.unit)(calc(lineWidth).mul(-1).equal())} 0 ${tableBorderColor}`
  29. }
  30. }
  31. };
  32. };
  33. var _default = exports.default = genSummaryStyle;