30 lines
766 B
JavaScript
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; |