[前端] ElementUI 中table表格数据解析渲染html格式
当在elementui中的table里想要渲染出html数据时
可以使用这种方式,里面嵌入个template
<el-table-column
prop="conf_name"
label="配置参数">
<template slot-scope="scope">
<div v-html="scope.row.conf_name"></div>
</template>
</el-table-column>
声明:本站所有文章资源,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系www@ktzvip.com删除。
网友留言