先说方法:v-html = "你的字符串"

 

<el-table-column type="expand" label="详情" header-align="center">
  <template slot-scope="scope">
    <div v-html="scope.row.steps"></div>
  </template>
</el-table-column>

 

 

 

[格式化前]

 

 

[格式化后]

 

posted on 2019-05-23 19:49  蛋尼  阅读(2127)  评论(0编辑  收藏  举报