html
<div class="node_title">{{ titleText(node) }}</div>
js
computed: {
titleText() {
return function(node) {
//就是html种传入的node
return node.data[this.tilteName]
}
}
},
html
<div class="node_title">{{ titleText(node) }}</div>
js
computed: {
titleText() {
return function(node) {
//就是html种传入的node
return node.data[this.tilteName]
}
}
},