[improvement] optimize popup mixin (#1979)
This commit is contained in:
@@ -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];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user