[improvement] optimize popup mixin (#1979)

This commit is contained in:
neverland
2018-10-25 13:10:09 +08:00
committed by GitHub
parent 5564fbf624
commit 88d8eb0897
3 changed files with 15 additions and 22 deletions
-5
View File
@@ -1,13 +1,8 @@
export default {
id: 1,
zIndex: 2000,
stack: [],
lockCount: 0,
plusKey(key) {
return this[key]++;
},
get top() {
return this.stack[this.stack.length - 1];
}