diff --git a/src/components/Ellipsis/index.js b/src/components/Ellipsis/index.js index 266e5a164968330d3808e8155455658db8315803..72fae0528a560cd9f9ab38d1bff54baf55f6786a 100644 --- a/src/components/Ellipsis/index.js +++ b/src/components/Ellipsis/index.js @@ -95,7 +95,7 @@ export default class Ellipsis extends Component { computeLine = () => { const { lines } = this.props; if (lines && !isSupportLineClamp) { - const text = this.shadowChildren.innerText; + const text = this.shadowChildren.innerText || this.shadowChildren.textContent; const lineHeight = parseInt(getComputedStyle(this.root).lineHeight, 10); const targetHeight = lines * lineHeight; this.content.style.height = `${targetHeight}px`;