|
|
|
@ -14487,6 +14487,7 @@ BI.Widget = BI.inherit(BI.OB, {
|
|
|
|
|
this._mountChildren && this._mountChildren(); |
|
|
|
|
BI.each(this._children, function (i, widget) { |
|
|
|
|
!self.isEnabled() && widget._setEnable(false); |
|
|
|
|
!self.isValid() && widget._setValid(false); |
|
|
|
|
widget._mount && widget._mount(); |
|
|
|
|
}); |
|
|
|
|
this.mounted && this.mounted(); |
|
|
|
@ -14520,6 +14521,18 @@ BI.Widget = BI.inherit(BI.OB, {
|
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
_setValid: function (valid) { |
|
|
|
|
if (valid === true) { |
|
|
|
|
this.options.invalid = false; |
|
|
|
|
} else if (valid === false) { |
|
|
|
|
this.options.invalid = true; |
|
|
|
|
} |
|
|
|
|
//递归将所有子组件使有效
|
|
|
|
|
BI.each(this._children, function (i, child) { |
|
|
|
|
child._setValid && child._setValid(valid); |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
setEnable: function (enable) { |
|
|
|
|
this._setEnable(enable); |
|
|
|
|
if (enable === true) { |
|
|
|
@ -14544,6 +14557,7 @@ BI.Widget = BI.inherit(BI.OB, {
|
|
|
|
|
|
|
|
|
|
setValid: function (valid) { |
|
|
|
|
this.options.invalid = !valid; |
|
|
|
|
this._setValid(valid); |
|
|
|
|
if (valid === true) { |
|
|
|
|
this.element.removeClass("base-invalid invalid"); |
|
|
|
|
} else if (valid === false) { |
|
|
|
@ -22631,9 +22645,7 @@ BI.extend(jQuery, {
|
|
|
|
|
* 基本的函数 |
|
|
|
|
* Created by GUY on 2015/6/24. |
|
|
|
|
*/ |
|
|
|
|
$(function () { |
|
|
|
|
BI.Func = {}; |
|
|
|
|
var formulas = {}; |
|
|
|
|
BI.extend(BI.Func, { |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
@ -22653,7 +22665,6 @@ $(function () {
|
|
|
|
|
}; |
|
|
|
|
} |
|
|
|
|
var t, text, py; |
|
|
|
|
keyword = keyword + ""; |
|
|
|
|
keyword = BI.toUpperCase(keyword); |
|
|
|
|
var matched = isArray ? [] : {}, finded = isArray ? [] : {}; |
|
|
|
|
BI.each(items, function (i, item) { |
|
|
|
@ -22908,7 +22919,6 @@ $(function () {
|
|
|
|
|
} |
|
|
|
|
return this._scrollWidth; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
});/** |
|
|
|
|
* guy |
|
|
|
|
* 检测某个Widget的EventChange事件然后去show某个card |
|
|
|
|