vant/packages/mixins/popup/context.ts
2019-03-21 10:08:26 +08:00

18 lines
297 B
TypeScript

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];
}
};