组件演示(多行超出省略号用法)
axml
<view class="wrapper">
<x-nav-bar showArrow="{{true}}" title="Div"></x-nav-bar>
<text class="text1">这是一段很长很长很长很长很长的文字</text>
</view>
css
.wrapper {
max-width: 100%;
height: 100%;
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: center;
background-color: #eeeeee;
}
.text1{
width: 200rpx;
text-overflow: ellipsis;
max-lines: 1;
}