| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- const genRadiusStyle = token => {
- const {
- componentCls,
- tableRadius
- } = token;
- return {
- [`${componentCls}-wrapper`]: {
- [componentCls]: {
- // https://github.com/ant-design/ant-design/issues/39115#issuecomment-1362314574
- [`${componentCls}-title, ${componentCls}-header`]: {
- borderRadius: `${tableRadius}px ${tableRadius}px 0 0`
- },
- [`${componentCls}-title + ${componentCls}-container`]: {
- borderStartStartRadius: 0,
- borderStartEndRadius: 0,
- table: {
- borderRadius: 0,
- '> thead > tr:first-child': {
- 'th:first-child': {
- borderRadius: 0
- },
- 'th:last-child': {
- borderRadius: 0
- }
- }
- }
- },
- '&-container': {
- borderStartStartRadius: tableRadius,
- borderStartEndRadius: tableRadius,
- 'table > thead > tr:first-child': {
- '> *:first-child': {
- borderStartStartRadius: tableRadius
- },
- '> *:last-child': {
- borderStartEndRadius: tableRadius
- }
- }
- },
- '&-footer': {
- borderRadius: `0 0 ${tableRadius}px ${tableRadius}px`
- }
- }
- }
- };
- };
- var _default = exports.default = genRadiusStyle;
|