Browse Source

Merge pull request #637 in VISUAL/fineui from ~DAILER/fineui:master to master

* commit '939a8e7c74e329f9de4bcd7e551d73c64d18b7f1':
  build
  加 removeAll 方法
master
Dailer 6 years ago
parent
commit
41aed93168
  1. 25
      dist/bundle.js
  2. 64
      dist/bundle.min.js
  3. 25
      dist/core.js
  4. 25
      dist/fineui.js
  5. 64
      dist/fineui.min.js
  6. 11
      src/core/controller/controller.layer.js
  7. 14
      src/core/controller/controller.popover.js

25
dist/bundle.js vendored

@ -26533,6 +26533,17 @@ BI.LayerController = BI.inherit(BI.Controller, {
delete this.layerManager[name]; delete this.layerManager[name];
delete this.layouts[name]; delete this.layouts[name];
return this; return this;
},
removeAll: function () {
var self = this;
BI.each(BI.keys(this.layerManager), function (index, name) {
self.layerManager[name].destroy();
self.layouts[name].destroy();
});
this.layerManager = {};
this.layouts = {};
return this;
} }
});/** });/**
* 遮罩面板, z-index在1亿层级 * 遮罩面板, z-index在1亿层级
@ -26689,6 +26700,20 @@ BI.PopoverController = BI.inherit(BI.Controller, {
delete this.floatContainer[name]; delete this.floatContainer[name];
delete this.floatOpened[name]; delete this.floatOpened[name];
return this; return this;
},
removeAll: function () {
var self = this;
BI.each(this.floatContainer, function (name, container) {
container.destroy();
self.modal && self.floatContainer[name].element.__releaseZIndexMask__(self.zindexMap[name]);
});
this.floatManager = {};
this.floatLayer = {};
this.floatContainer = {};
this.floatOpened = {};
this.zindexMap = {};
return this;
} }
});/** });/**
* window.resize 控制器 * window.resize 控制器

64
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

25
dist/core.js vendored

@ -26533,6 +26533,17 @@ BI.LayerController = BI.inherit(BI.Controller, {
delete this.layerManager[name]; delete this.layerManager[name];
delete this.layouts[name]; delete this.layouts[name];
return this; return this;
},
removeAll: function () {
var self = this;
BI.each(BI.keys(this.layerManager), function (index, name) {
self.layerManager[name].destroy();
self.layouts[name].destroy();
});
this.layerManager = {};
this.layouts = {};
return this;
} }
});/** });/**
* 遮罩面板, z-index在1亿层级 * 遮罩面板, z-index在1亿层级
@ -26689,6 +26700,20 @@ BI.PopoverController = BI.inherit(BI.Controller, {
delete this.floatContainer[name]; delete this.floatContainer[name];
delete this.floatOpened[name]; delete this.floatOpened[name];
return this; return this;
},
removeAll: function () {
var self = this;
BI.each(this.floatContainer, function (name, container) {
container.destroy();
self.modal && self.floatContainer[name].element.__releaseZIndexMask__(self.zindexMap[name]);
});
this.floatManager = {};
this.floatLayer = {};
this.floatContainer = {};
this.floatOpened = {};
this.zindexMap = {};
return this;
} }
});/** });/**
* window.resize 控制器 * window.resize 控制器

25
dist/fineui.js vendored

@ -26774,6 +26774,17 @@ BI.LayerController = BI.inherit(BI.Controller, {
delete this.layerManager[name]; delete this.layerManager[name];
delete this.layouts[name]; delete this.layouts[name];
return this; return this;
},
removeAll: function () {
var self = this;
BI.each(BI.keys(this.layerManager), function (index, name) {
self.layerManager[name].destroy();
self.layouts[name].destroy();
});
this.layerManager = {};
this.layouts = {};
return this;
} }
});/** });/**
* 遮罩面板, z-index在1亿层级 * 遮罩面板, z-index在1亿层级
@ -26930,6 +26941,20 @@ BI.PopoverController = BI.inherit(BI.Controller, {
delete this.floatContainer[name]; delete this.floatContainer[name];
delete this.floatOpened[name]; delete this.floatOpened[name];
return this; return this;
},
removeAll: function () {
var self = this;
BI.each(this.floatContainer, function (name, container) {
container.destroy();
self.modal && self.floatContainer[name].element.__releaseZIndexMask__(self.zindexMap[name]);
});
this.floatManager = {};
this.floatLayer = {};
this.floatContainer = {};
this.floatOpened = {};
this.zindexMap = {};
return this;
} }
});/** });/**
* window.resize 控制器 * window.resize 控制器

64
dist/fineui.min.js vendored

File diff suppressed because one or more lines are too long

11
src/core/controller/controller.layer.js

@ -155,5 +155,16 @@ BI.LayerController = BI.inherit(BI.Controller, {
delete this.layerManager[name]; delete this.layerManager[name];
delete this.layouts[name]; delete this.layouts[name];
return this; return this;
},
removeAll: function () {
var self = this;
BI.each(BI.keys(this.layerManager), function (index, name) {
self.layerManager[name].destroy();
self.layouts[name].destroy();
});
this.layerManager = {};
this.layouts = {};
return this;
} }
}); });

14
src/core/controller/controller.popover.js

@ -138,5 +138,19 @@ BI.PopoverController = BI.inherit(BI.Controller, {
delete this.floatContainer[name]; delete this.floatContainer[name];
delete this.floatOpened[name]; delete this.floatOpened[name];
return this; return this;
},
removeAll: function () {
var self = this;
BI.each(this.floatContainer, function (name, container) {
container.destroy();
self.modal && self.floatContainer[name].element.__releaseZIndexMask__(self.zindexMap[name]);
});
this.floatManager = {};
this.floatLayer = {};
this.floatContainer = {};
this.floatOpened = {};
this.zindexMap = {};
return this;
} }
}); });
Loading…
Cancel
Save