提交 1c9f627d 编写于 作者: 雪洛's avatar 雪洛

fix: text组件截断示例宽度应限制为100%

上级 233b813f
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
<text class="uni-subtitle-text">截断(clip)</text> <text class="uni-subtitle-text">截断(clip)</text>
</view> </view>
<view class="text-box"> <view class="text-box">
<text class="uni-flex-item" style="text-overflow: clip;white-space: nowrap;">{{ <text class="uni-flex-item" style="width: 100%;text-overflow: clip;white-space: nowrap;">{{
multiLineText multiLineText
}}</text> }}</text>
</view> </view>
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
<text class="uni-subtitle-text">截断(ellipsis)</text> <text class="uni-subtitle-text">截断(ellipsis)</text>
</view> </view>
<view class="text-box"> <view class="text-box">
<text class="uni-flex-item" style="text-overflow: ellipsis;white-space: nowrap;">{{ <text class="uni-flex-item" style="width: 100%;text-overflow: ellipsis;white-space: nowrap;">{{
multiLineText multiLineText
}}</text> }}</text>
</view> </view>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册