關於空格

 

<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

相關文章
相關標籤/搜索