[new feature] Sidebar: support use v-model to bind active key (#3698)

This commit is contained in:
neverland
2019-06-30 09:43:54 +08:00
committed by GitHub
parent 531fa6681e
commit a7b4b4c219
6 changed files with 55 additions and 54 deletions
+1
View File
@@ -23,6 +23,7 @@ export default createComponent({
methods: {
onClick() {
this.$emit('click', this.index);
this.parent.$emit('input', this.index);
this.parent.$emit('change', this.index);
route(this.$router, this);
}