Skip to content
This repository has been archived by the owner on Feb 3, 2020. It is now read-only.

Commit

Permalink
Update Menu
Browse files Browse the repository at this point in the history
  • Loading branch information
okoala committed Dec 9, 2015
1 parent 230f67d commit 225591c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions components/base/menu/SubMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ export default {
this._unbindRootCloseHandlers()
}
}
this._mapPropsToChildComponent()
},
beforeDestory () {
Expand All @@ -83,6 +84,12 @@ export default {
},
methods: {
_mapPropsToChildComponent () {
this.$children.map((child, index) => {
child.className += ` ${this.prefixCls}-sub`
})
},
_onKeyDown (e) {
const keyCode = e.keyCode
const menu = this.menuInstance
Expand Down

0 comments on commit 225591c

Please sign in to comment.