v-html -> domPropsInnerHTML
new Vue({
data:{
html:'<p>test</p>'
},
render:function (h) {
return ( <div domPropsInnerHTML={this.html} /> )
}
}).$mount("#app");
条件判断
render: (h, data) => {
const { row } = data
return (
<dl>
<dt>姓名</dt>
{row.name ? (<dd>{ row.name }</dd>) : (<dd domPropsInnerHTML={row.highlightRealname}></dd>)}
</dl>
)
}