summary.js 769 B

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