Skip to content

Commit 11c2785

Browse files
VdustRmarcosmoura
authored andcommitted
feat(MdListItemExpand): add expanded and collapsed events (#1495)
fix #1490
1 parent 042e571 commit 11c2785

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/MdList/MdListItem/MdListItemExpand.vue

+3-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,9 @@
9595
}
9696
},
9797
showContent () {
98-
this.$emit('update:mdExpanded', this.showContent)
98+
let expanded = this.showContent
99+
this.$emit('update:mdExpanded', expanded)
100+
this.$nextTick(() => this.$emit(expanded ? 'md-expanded' : 'md-collapsed'))
99101
}
100102
},
101103
mounted () {

0 commit comments

Comments
 (0)