on-toggle-expand example
This commit is contained in:
parent
75dad87376
commit
141ea1ba6f
1 changed files with 4 additions and 1 deletions
|
@ -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 () {
|
||||
|
|
Loading…
Add table
Reference in a new issue