guy 7 years ago
parent
commit
b894a850a8
  1. 2
      bi/base.css
  2. 18
      bi/core.js
  3. 1
      demo/js/core/abstract/demo.virtual_group.js
  4. 2
      dist/base.css
  5. 18
      dist/core.js
  6. 7
      src/core/base.js
  7. 5
      src/core/widget.js
  8. 6
      src/core/wrapper/layout.js

2
bi/base.css

@ -1035,7 +1035,7 @@ li.CodeMirror-hint-active {
overflow-x: hidden;
overflow-y: hidden;
white-space: nowrap;
word-break: break-all;
word-break: break-word;
}
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/

18
bi/core.js

@ -2036,7 +2036,7 @@ if (!window.BI) {
},
formatEL: function (obj) {
if (obj && obj.el) {
if (obj && !obj.type && obj.el) {
return obj;
}
return {
@ -2995,9 +2995,8 @@ if (!window.BI) {
option.data = BI.cjkEncodeDO(option.data);
$.ajax({
url: option.url,
type: "POST",
@ -4458,7 +4457,8 @@ BI.Widget = BI.inherit(BI.OB, {
mounted: null,
update: null,
update: function () {
},
destroyed: null,
@ -4682,7 +4682,7 @@ BI.Widget = BI.inherit(BI.OB, {
}
widget._setParent && widget._setParent(this);
widget.on(BI.Events.DESTROY, function () {
delete self._children[name]
BI.remove(self._children, this);
});
return (this._children[name] = widget);
},
@ -11445,9 +11445,9 @@ BI.Layout = BI.inherit(BI.Widget, {
}
var child = this._children[this._getChildName(index)];
if (child.update) {
child.update(this._getOptions(item));
return true;
var updated;
if (updated = child.update(this._getOptions(item))) {
return updated;
}
var del = this._children[this._getChildName(index)];
delete this._children[this._getChildName(index)];

1
demo/js/core/abstract/demo.virtual_group.js

@ -66,6 +66,7 @@ Demo.Item = BI.inherit(BI.Widget, {
update: function (item) {
this.label.setText(item.value);
console.log("更新了一项");
return true;
},
created: function () {

2
dist/base.css vendored

@ -1035,7 +1035,7 @@ li.CodeMirror-hint-active {
overflow-x: hidden;
overflow-y: hidden;
white-space: nowrap;
word-break: break-all;
word-break: break-word;
}
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/

18
dist/core.js vendored

@ -13052,7 +13052,7 @@ if (!window.BI) {
},
formatEL: function (obj) {
if (obj && obj.el) {
if (obj && !obj.type && obj.el) {
return obj;
}
return {
@ -14011,9 +14011,8 @@ if (!window.BI) {
option.data = BI.cjkEncodeDO(option.data);
$.ajax({
url: option.url,
type: "POST",
@ -14370,7 +14369,8 @@ BI.Widget = BI.inherit(BI.OB, {
mounted: null,
update: null,
update: function () {
},
destroyed: null,
@ -14594,7 +14594,7 @@ BI.Widget = BI.inherit(BI.OB, {
}
widget._setParent && widget._setParent(this);
widget.on(BI.Events.DESTROY, function () {
delete self._children[name]
BI.remove(self._children, this);
});
return (this._children[name] = widget);
},
@ -19578,9 +19578,9 @@ BI.Layout = BI.inherit(BI.Widget, {
}
var child = this._children[this._getChildName(index)];
if (child.update) {
child.update(this._getOptions(item));
return true;
var updated;
if (updated = child.update(this._getOptions(item))) {
return updated;
}
var del = this._children[this._getChildName(index)];
delete this._children[this._getChildName(index)];

7
src/core/base.js

@ -141,7 +141,7 @@ if (!window.BI) {
},
formatEL: function (obj) {
if (obj && obj.el) {
if (obj && !obj.type && obj.el) {
return obj;
}
return {
@ -1100,9 +1100,8 @@ if (!window.BI) {
option.data = BI.cjkEncodeDO(option.data);
$.ajax({
url: option.url,
type: "POST",

5
src/core/widget.js

@ -34,7 +34,8 @@ BI.Widget = BI.inherit(BI.OB, {
mounted: null,
update: null,
update: function () {
},
destroyed: null,
@ -258,7 +259,7 @@ BI.Widget = BI.inherit(BI.OB, {
}
widget._setParent && widget._setParent(this);
widget.on(BI.Events.DESTROY, function () {
delete self._children[name]
BI.remove(self._children, this);
});
return (this._children[name] = widget);
},

6
src/core/wrapper/layout.js

@ -246,9 +246,9 @@ BI.Layout = BI.inherit(BI.Widget, {
}
var child = this._children[this._getChildName(index)];
if (child.update) {
child.update(this._getOptions(item));
return true;
var updated;
if (updated = child.update(this._getOptions(item))) {
return updated;
}
var del = this._children[this._getChildName(index)];
delete this._children[this._getChildName(index)];

Loading…
Cancel
Save