Browse Source

Complete bind click event with handleSelectFile method

pull/9/head
johnniang 6 years ago
parent
commit
731576885a
  1. 9
      src/views/interface/components/ThemeFile.vue

9
src/views/interface/components/ThemeFile.vue

@ -9,10 +9,11 @@ export default {
}
},
methods: {
handlerSelectFile() {
this.$log.debug('加载文件')
handleSelectFile(file) {
this.$log.debug('加载文件', file)
},
renderNode(h, file) {
const _this = this
if (file.node && file.node.length) {
return h(
'a-tree-node',
@ -35,7 +36,9 @@ export default {
isLeaf: file.isFile
},
nativeOn: {
click: this.handlerSelectFile
click: function() {
_this.handleSelectFile(file)
}
}
})
}

Loading…
Cancel
Save