有时候从后台传来的值有html代码片段,我们需要用html给展示,就用到了v-html
用法:
<el-table-column label="规则说明" align="center">
<div slot-scope="scope" v-html="scope.row.ruledescription">
{{scope.row.ruledescription}}
</div>
</el-table-column>
这样就可以了
有时候从后台传来的值有html代码片段,我们需要用html给展示,就用到了v-html
用法:
<el-table-column label="规则说明" align="center">
<div slot-scope="scope" v-html="scope.row.ruledescription">
{{scope.row.ruledescription}}
</div>
</el-table-column>
这样就可以了