chrome version number 48.0.2564.116
there is a problem with the custom template for the tree component using element-ui
html code is as follows:
<el-tree :data="data" node-key="id" @node-click="nodeClick">
<span class="custom-tree-node" slot-scope="{data}">
<img v-if="data.icon" :src="data.icon">
<span>{{data.name?data.name+"("+data.phone+")":data.phone}}</span>
<span v-if="data.num">{{data.num}}</span>
</span>
</el-tree>
part of the js code is as follows:
data:{
data:[{
id:1,
phone:"",
children:[{
id:2,
phone:"10086",
num:10,
name:"10086"
}],
icon:"conn.png"
}]
}