mirror of https://github.com/halo-dev/halo-admin
Complete bind click event with handleSelectFile method
parent
f3f54e0fa3
commit
731576885a
|
@ -9,10 +9,11 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handlerSelectFile() {
|
handleSelectFile(file) {
|
||||||
this.$log.debug('加载文件')
|
this.$log.debug('加载文件', file)
|
||||||
},
|
},
|
||||||
renderNode(h, file) {
|
renderNode(h, file) {
|
||||||
|
const _this = this
|
||||||
if (file.node && file.node.length) {
|
if (file.node && file.node.length) {
|
||||||
return h(
|
return h(
|
||||||
'a-tree-node',
|
'a-tree-node',
|
||||||
|
@ -35,7 +36,9 @@ export default {
|
||||||
isLeaf: file.isFile
|
isLeaf: file.isFile
|
||||||
},
|
},
|
||||||
nativeOn: {
|
nativeOn: {
|
||||||
click: this.handlerSelectFile
|
click: function() {
|
||||||
|
_this.handleSelectFile(file)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue