[improvement] popup mixin ts (#3022)

This commit is contained in:
neverland
2019-03-21 10:08:26 +08:00
committed by GitHub
parent e04322a2e6
commit 7eda33eb44
5 changed files with 100 additions and 91 deletions
+17
View File
@@ -0,0 +1,17 @@
import { OverlayConfig } from './overlay';
export type StackItem = {
vm: any;
target: HTMLElement;
config: OverlayConfig;
};
export const context = {
zIndex: 2000,
lockCount: 0,
stack: [] as StackItem[],
get top(): StackItem {
return this.stack[this.stack.length - 1];
}
};