on-toggle-expand example

This commit is contained in:
Lawrence Lee 2017-04-27 15:31:16 +08:00
parent 75dad87376
commit 141ea1ba6f

View file

@ -1,5 +1,5 @@
<template>
<Tree :data="baseData" show-checkbox @on-check-change="handleChange" ></Tree>
<Tree :data="baseData" show-checkbox @on-check-change="handleChange" @on-toggle-expand="showExpand"></Tree>
</template>
<script>
export default {
@ -47,6 +47,9 @@
},
handleChange () {
console.log(1)
},
showExpand (payload) {
console.log(payload)
}
},
mounted () {