From dc05c6c5dda2d070a7e1319cf99656becc50fe15 Mon Sep 17 00:00:00 2001 From: yinjiacheng Date: Thu, 21 Mar 2024 18:51:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0CSS=E7=A4=BA=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/CSS/text/text-overflow.uvue | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pages/CSS/text/text-overflow.uvue b/pages/CSS/text/text-overflow.uvue index 649cfbc1..41ac0de8 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,大一统语言(单行文本)' } } } -- GitLab