Browse Source

Merge branch 'master' of ssh://code.fineres.com:7999/~treecat/fineui

es6
Treecat 2 years ago
parent
commit
8efb8ba0e8
  1. 2
      package.json
  2. 6
      src/base/grid/grid.js
  3. 3
      src/base/single/editor/editor.multifile.js
  4. 3
      src/base/single/input/file.js
  5. 1
      src/core/4.widget.js
  6. 2
      src/widget/multiselect/multiselect.combo.js
  7. 2
      src/widget/multiselect/multiselect.combo.nobar.js
  8. 2
      src/widget/multiselect/multiselect.insert.combo.js
  9. 2
      src/widget/multiselect/multiselect.insert.combo.nobar.js
  10. 2
      src/widget/multiselectlist/multiselectlist.insert.js
  11. 2
      src/widget/multiselectlist/multiselectlist.insert.nobar.js
  12. 2
      src/widget/multiselectlist/multiselectlist.js

2
package.json

@ -1,6 +1,6 @@
{
"name": "fineui",
"version": "2.0.20220921232331",
"version": "2.0.20220926101524",
"description": "fineui",
"main": "dist/fineui_without_conflict.min.js",
"types": "dist/lib/index.d.ts",

6
src/base/grid/grid.js

@ -97,6 +97,12 @@ BI.GridView = BI.inherit(BI.Widget, {
}
},
destroyed: function () {
BI.each(this.renderedCells, function(i, cell) {
cell.el._destroy();
})
},
_calculateSizeAndPositionData: function () {
var o = this.options;
this.rowCount = 0;

3
src/base/single/editor/editor.multifile.js

@ -43,14 +43,12 @@ BI.MultifileEditor = BI.inherit(BI.Widget, {
});
this.file.on(BI.File.EVENT_ERROR, function () {
self.fireEvent(BI.MultifileEditor.EVENT_ERROR, arguments);
self._reset();
});
this.file.on(BI.File.EVENT_PROGRESS, function () {
self.fireEvent(BI.MultifileEditor.EVENT_PROGRESS, arguments);
});
this.file.on(BI.File.EVENT_UPLOADED, function () {
self.fireEvent(BI.MultifileEditor.EVENT_UPLOADED, arguments);
self._reset();
});
BI.createWidget({
@ -95,6 +93,7 @@ BI.MultifileEditor = BI.inherit(BI.Widget, {
},
upload: function () {
this._reset();
this.file.upload();
},

3
src/base/single/input/file.js

@ -114,7 +114,7 @@
handler.onerror();
}
return;
return;
}
for (var xhr = new XMLHttpRequest,
upload = xhr.upload || {
@ -705,7 +705,6 @@
reset: function () {
if (this.wrap) {
this.wrap.files = [];
this.wrap.attach_array = [];
this.wrap.attach_names = [];
this.wrap.attachNum = 0;

1
src/core/4.widget.js

@ -360,6 +360,7 @@
var workerMode = BI.Providers.getProvider("bi.provider.system").getWorkerMode();
var render = BI.isFunction(this.options.render) ? this.options.render : (workerMode ? (this.$render || this.render) : this.render);
var els = render && render.call(this);
els = this.options.configRender ? this.options.configRender(els) : els;
els = BI.Plugin.getRender(this.options.type, els);
if (BI.isPlainObject(els)) {
els = [els];

2
src/widget/multiselect/multiselect.combo.js

@ -35,7 +35,7 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
self.trigger.getSearcher().setState(self.storeValue);
self.numberCounter.setButtonChecked(self.storeValue);
};
this.storeValue = o.value || {};
this.storeValue = BI.deepClone(o.value) || {};
this._assertValue(this.storeValue);

2
src/widget/multiselect/multiselect.combo.nobar.js

@ -34,7 +34,7 @@ BI.MultiSelectNoBarCombo = BI.inherit(BI.Single, {
};
this.storeValue = {
type: BI.Selection.Multi,
value: o.value || []
value: BI.deepClone(o.value) || []
};
// 标记正在请求数据
this.requesting = false;

2
src/widget/multiselect/multiselect.insert.combo.js

@ -33,7 +33,7 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
self.trigger.getSearcher().setState(self.storeValue);
self.numberCounter.setButtonChecked(self.storeValue);
};
this.storeValue = o.value || {};
this.storeValue = BI.deepClone(o.value) || {};
// 标记正在请求数据
this.requesting = false;

2
src/widget/multiselect/multiselect.insert.combo.nobar.js

@ -34,7 +34,7 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, {
};
this.storeValue = {
type: BI.Selection.Multi,
value: o.value || []
value: BI.deepClone(o.value) || []
};
// 标记正在请求数据
this.requesting = false;

2
src/widget/multiselectlist/multiselectlist.insert.js

@ -15,7 +15,7 @@ BI.MultiSelectInsertList = BI.inherit(BI.Single, {
BI.MultiSelectInsertList.superclass._init.apply(this, arguments);
var self = this, o = this.options;
this.storeValue = this._assertValue(o.value || {});
this.storeValue = this._assertValue(BI.deepClone(o.value) || {});
var assertShowValue = function () {
BI.isKey(self._startValue) && (self.storeValue.type === BI.Selection.All ? BI.remove(self.storeValue.value, self._startValue) : BI.pushDistinct(self.storeValue.value, self._startValue));

2
src/widget/multiselectlist/multiselectlist.insert.nobar.js

@ -16,7 +16,7 @@ BI.MultiSelectInsertNoBarList = BI.inherit(BI.Single, {
var self = this, o = this.options;
this.storeValue = {
type: BI.Selection.Multi,
value: o.value || []
value: BI.deepClone(o.value) || []
};
var assertShowValue = function () {

2
src/widget/multiselectlist/multiselectlist.js

@ -15,7 +15,7 @@ BI.MultiSelectList = BI.inherit(BI.Widget, {
BI.MultiSelectList.superclass._init.apply(this, arguments);
var self = this, o = this.options;
this.storeValue = this._assertValue(o.value || {});
this.storeValue = this._assertValue(BI.deepClone(o.value) || {});
var assertShowValue = function () {
BI.isKey(self._startValue) && (self.storeValue.type === BI.Selection.All ? BI.remove(self.storeValue.value, self._startValue) : BI.pushDistinct(self.storeValue.value, self._startValue));

Loading…
Cancel
Save