Commit 141ea1ba6f53d5b248e1b44c5722d207d9bb5529

Authored by Lawrence Lee
1 parent 75dad873

on-toggle-expand example

Showing 1 changed file with 4 additions and 1 deletions   Show diff stats
examples/routers/tree.vue
1 1 <template>
2   - <Tree :data="baseData" show-checkbox @on-check-change="handleChange" ></Tree>
  2 + <Tree :data="baseData" show-checkbox @on-check-change="handleChange" @on-toggle-expand="showExpand"></Tree>
3 3 </template>
4 4 <script>
5 5 export default {
... ... @@ -47,6 +47,9 @@
47 47 },
48 48 handleChange () {
49 49 console.log(1)
  50 + },
  51 + showExpand (payload) {
  52 + console.log(payload)
50 53 }
51 54 },
52 55 mounted () {
... ...