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