Files
video-gen/video-gen-admin/node_modules/antd/es/table/style/ellipsis.js
T
2026-05-25 17:08:18 +08:00

30 lines
766 B
JavaScript

import { textEllipsis } from '../../style';
const genEllipsisStyle = token => {
const {
componentCls
} = token;
return {
[`${componentCls}-wrapper`]: {
[`${componentCls}-cell-ellipsis`]: {
...textEllipsis,
wordBreak: 'keep-all',
// Fixed first or last should special process
[`
&${componentCls}-cell-fix-start-shadow,
&${componentCls}-cell-fix-end-shadow
`]: {
overflow: 'visible',
[`${componentCls}-cell-content`]: {
...textEllipsis,
display: 'block'
}
},
[`${componentCls}-column-title`]: {
...textEllipsis,
wordBreak: 'keep-all'
}
}
}
};
};
export default genEllipsisStyle;