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>
|
<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>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
|
@ -47,6 +47,9 @@
|
||||||
},
|
},
|
||||||
handleChange () {
|
handleChange () {
|
||||||
console.log(1)
|
console.log(1)
|
||||||
|
},
|
||||||
|
showExpand (payload) {
|
||||||
|
console.log(payload)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted () {
|
mounted () {
|
||||||
|
|
Loading…
Add table
Reference in a new issue