<div class="modalData">
<div v-for="(item,index) in ModalData">
<p class="item" :title="item">{{ item }}</p>
</div>
</div>
<style lang='less' scoped>
.modalData {
display: flex;
justify-content: flex-start;
align-items: center;
.item {
height: 20px;
width: 100px;
margin-left: 10px;
//下面的三个一起使用
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
}
</style>