前端超过字数显示省略号:
<span :title="scope.row.businessScope" style="display: inline-block;width: 120px;overflow:hidden;-webkit-box-orient: vertical;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;">{{ scope.row.businessScope }}</span>
前端过滤List:
selectData() {
this.dataForm.classify2 = ''
const val = this.dataForm.classify1
const arr = this.secondListAll.filter(function(item) {
return item.parentId === val
})
this.secondList = arr
},
方法二:直接使用element中的注解