当在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>
Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐