Files
vant/src/mixins/popup/context.ts
2020-07-15 20:02:00 +08:00

14 lines
250 B
TypeScript

export type StackItem = {
vm: any;
overlay: any;
};
export const context = {
zIndex: 2000,
lockCount: 0,
stack: [] as StackItem[],
find(vm: any): StackItem | undefined {
return this.stack.filter((item) => item.vm === vm)[0];
},
};