diff --git a/pages/CSS/text/text-overflow.uvue b/pages/CSS/text/text-overflow.uvue index 649cfbc18104d079e80c94ac37117d378a841ee0..41ac0de815ecd6c256e3f8bfbd26929dc7593236 100644 --- a/pages/CSS/text/text-overflow.uvue +++ b/pages/CSS/text/text-overflow.uvue @@ -3,15 +3,16 @@ text-overflow:clip white-space:nowrap - {{text}} + {{multiLineText}} text-overflow:ellipsis white-space:nowrap - {{text}} + {{singleLineText}} + {{multiLineText}} white-space:normal - {{text}} + {{multiLineText}} @@ -21,7 +22,8 @@ export default { data() { return { - text: 'HBuilderX,轻巧、极速,极客编辑器;uni-app x,终极跨平台方案;uts,大一统语言' + multiLineText: 'HBuilderX,轻巧、极速,极客编辑器;uni-app x,终极跨平台方案;uts,大一统语言', + singleLineText: 'uts,大一统语言(单行文本)' } } }