关于空格

 

<el-table-column prop="telephone" label="服务电话" width="200" align="center">
   <template slot-scope="scope">
      <div v-html='scope.row.telephone.split("\n").join("<br/>")'></div>
   </template>
</el-table-column>

 

 

split("\n").join("<br/>") 表格中数据的换行。html

相关文章
相关标签/搜索