diff --git a/src/components/Ellipsis/index.js b/src/components/Ellipsis/index.js index 5adb50cd35b0fcba58d7422251b2f288fb244393..6b5a5d76f92c2c2f41e9d9ca0240743e3ae3e47f 100644 --- a/src/components/Ellipsis/index.js +++ b/src/components/Ellipsis/index.js @@ -8,6 +8,11 @@ import styles from './index.less'; const isSupportLineClamp = document.body.style.webkitLineClamp !== undefined; +const TooltipOverlayStyle = { + overflowWrap: 'break-word', + wordWrap: 'break-word', +}; + export const getStrFullLength = (str = '') => { return str.split('').reduce((pre, cur) => { const charCode = cur.charCodeAt(0); @@ -54,7 +59,7 @@ const EllipsisText = ({ text, length, tooltip, fullWidthRecognition, ...other }) if (tooltip) { return ( - + {displayText} {tail} @@ -223,7 +228,7 @@ export default class Ellipsis extends Component {
{tooltip ? ( - + {children} ) : ( @@ -244,7 +249,7 @@ export default class Ellipsis extends Component {
{tooltip ? ( - + {childNode} ) : (