first
This commit is contained in:
23
node_modules/vant/lib/mixins/popup/context.js
generated
vendored
Normal file
23
node_modules/vant/lib/mixins/popup/context.js
generated
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
"use strict";
|
||||
|
||||
exports.__esModule = true;
|
||||
exports.context = void 0;
|
||||
var context = {
|
||||
zIndex: 2000,
|
||||
lockCount: 0,
|
||||
stack: [],
|
||||
find: function find(vm) {
|
||||
return this.stack.filter(function (item) {
|
||||
return item.vm === vm;
|
||||
})[0];
|
||||
},
|
||||
remove: function remove(vm) {
|
||||
var item = this.find(vm);
|
||||
if (!item) return;
|
||||
item.vm = null;
|
||||
item.overlay = null;
|
||||
var index = this.stack.indexOf(item);
|
||||
this.stack.splice(index, 1);
|
||||
}
|
||||
};
|
||||
exports.context = context;
|
Reference in New Issue
Block a user