context.ts 274 B

12345678910111213141516
  1. import { OverlayConfig } from './overlay';
  2. export type StackItem = {
  3. vm: any;
  4. config: OverlayConfig;
  5. };
  6. export const context = {
  7. zIndex: 2000,
  8. lockCount: 0,
  9. stack: [] as StackItem[],
  10. get top(): StackItem {
  11. return this.stack[this.stack.length - 1];
  12. }
  13. };