Skip to content

Commit e8064b0

Browse files
shortdivkefranabg
authored andcommitted
feat($theme-default) Propagate toggleSidebar event to parent (#1816)
1 parent eb231bf commit e8064b0

File tree

1 file changed

+1
-0
lines changed
  • packages/@vuepress/theme-default/layouts

1 file changed

+1
-0
lines changed

packages/@vuepress/theme-default/layouts/Layout.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ export default {
121121
methods: {
122122
toggleSidebar (to) {
123123
this.isSidebarOpen = typeof to === 'boolean' ? to : !this.isSidebarOpen
124+
this.$emit('toggle-sidebar', this.isSidebarOpen)
124125
},
125126
126127
// side swipe

0 commit comments

Comments
 (0)