|
|
@ -34147,7 +34147,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
var result = original.apply(this, args); |
|
|
|
var result = original.apply(this, args); |
|
|
|
notify(ob.parent, ob.parentKey, ob.dep); |
|
|
|
notify(ob.parent, ob.parentKey, ob.dep, true); |
|
|
|
return result; |
|
|
|
return result; |
|
|
|
}; |
|
|
|
}; |
|
|
|
}); |
|
|
|
}); |
|
|
@ -34355,8 +34355,8 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons |
|
|
|
return ob; |
|
|
|
return ob; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function notify(observer, key, dep) { |
|
|
|
function notify(observer, key, dep, refresh) { |
|
|
|
dep.notify({ observer: observer, key: key }); |
|
|
|
dep.notify({ observer: observer, key: key, refresh: refresh }); |
|
|
|
if (observer) { |
|
|
|
if (observer) { |
|
|
|
//触发a.*绑定的依赖
|
|
|
|
//触发a.*绑定的依赖
|
|
|
|
_.each(observer._deps, function (dep) { |
|
|
|
_.each(observer._deps, function (dep) { |
|
|
@ -34715,7 +34715,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons |
|
|
|
// Deep watchers and watchers on Object/Arrays should fire even
|
|
|
|
// Deep watchers and watchers on Object/Arrays should fire even
|
|
|
|
// when the value is the same, because the value may
|
|
|
|
// when the value is the same, because the value may
|
|
|
|
// have mutated.
|
|
|
|
// have mutated.
|
|
|
|
_.isArray(value) || this.deep) { |
|
|
|
options && options.refresh || this.deep) { |
|
|
|
// set new value
|
|
|
|
// set new value
|
|
|
|
var oldValue = this.value; |
|
|
|
var oldValue = this.value; |
|
|
|
this.value = value; |
|
|
|
this.value = value; |
|
|
@ -50882,7 +50882,7 @@ BI.ColorChooser = BI.inherit(BI.Widget, { |
|
|
|
} |
|
|
|
} |
|
|
|
}] |
|
|
|
}] |
|
|
|
}, o.popup), |
|
|
|
}, o.popup), |
|
|
|
stopPropagation: false, |
|
|
|
stopPropagation: true, |
|
|
|
width: 230 |
|
|
|
width: 230 |
|
|
|
}, |
|
|
|
}, |
|
|
|
value: o.value |
|
|
|
value: o.value |
|
|
@ -64023,10 +64023,10 @@ BI.IntervalSlider = BI.inherit(BI.Single, { |
|
|
|
valueTwo = o.digit === false ? valueTwo : valueTwo.toFixed(o.digit); |
|
|
|
valueTwo = o.digit === false ? valueTwo : valueTwo.toFixed(o.digit); |
|
|
|
if (!isNaN(valueOne) && !isNaN(valueTwo)) { |
|
|
|
if (!isNaN(valueOne) && !isNaN(valueTwo)) { |
|
|
|
if (this._checkValidation(valueOne)) { |
|
|
|
if (this._checkValidation(valueOne)) { |
|
|
|
this.valueOne = valueOne; |
|
|
|
this.valueOne = (this.valueOne <= this.valueTwo ? valueOne : valueTwo); |
|
|
|
} |
|
|
|
} |
|
|
|
if (this._checkValidation(valueTwo)) { |
|
|
|
if (this._checkValidation(valueTwo)) { |
|
|
|
this.valueTwo = valueTwo; |
|
|
|
this.valueTwo = (this.valueOne <= this.valueTwo ? valueTwo : valueOne); |
|
|
|
} |
|
|
|
} |
|
|
|
if (valueOne < this.min) { |
|
|
|
if (valueOne < this.min) { |
|
|
|
this.valueOne = this.min; |
|
|
|
this.valueOne = this.min; |
|
|
@ -74127,7 +74127,7 @@ BI.SingleSelectSearchLoader = BI.inherit(BI.Widget, { |
|
|
|
|
|
|
|
|
|
|
|
_createItems: function (items) { |
|
|
|
_createItems: function (items) { |
|
|
|
return BI.createItems(items, { |
|
|
|
return BI.createItems(items, { |
|
|
|
type: "bi.single_select_combo.item", |
|
|
|
type: "bi.single_select_item", |
|
|
|
logic: { |
|
|
|
logic: { |
|
|
|
dynamic: false |
|
|
|
dynamic: false |
|
|
|
}, |
|
|
|
}, |
|
|
@ -74816,72 +74816,6 @@ BI.extend(BI.SingleSelectInsertCombo, { |
|
|
|
BI.SingleSelectInsertCombo.EVENT_CONFIRM = "EVENT_CONFIRM"; |
|
|
|
BI.SingleSelectInsertCombo.EVENT_CONFIRM = "EVENT_CONFIRM"; |
|
|
|
|
|
|
|
|
|
|
|
BI.shortcut("bi.single_select_insert_combo", BI.SingleSelectInsertCombo);/** |
|
|
|
BI.shortcut("bi.single_select_insert_combo", BI.SingleSelectInsertCombo);/** |
|
|
|
* guy |
|
|
|
|
|
|
|
* 单选框item |
|
|
|
|
|
|
|
* @type {*|void|Object} |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
BI.SingleSelectComboItem = BI.inherit(BI.BasicButton, { |
|
|
|
|
|
|
|
_defaultConfig: function () { |
|
|
|
|
|
|
|
return BI.extend(BI.SingleSelectComboItem.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
|
|
|
|
extraCls: "bi-single-select-radio-item", |
|
|
|
|
|
|
|
logic: { |
|
|
|
|
|
|
|
dynamic: false |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
height: 24 |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
_init: function () { |
|
|
|
|
|
|
|
BI.SingleSelectComboItem.superclass._init.apply(this, arguments); |
|
|
|
|
|
|
|
var self = this, o = this.options; |
|
|
|
|
|
|
|
this.radio = BI.createWidget({ |
|
|
|
|
|
|
|
type: "bi.radio" |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
this.text = BI.createWidget({ |
|
|
|
|
|
|
|
type: "bi.label", |
|
|
|
|
|
|
|
cls: "list-item-text", |
|
|
|
|
|
|
|
textAlign: "left", |
|
|
|
|
|
|
|
whiteSpace: "nowrap", |
|
|
|
|
|
|
|
textHeight: o.height, |
|
|
|
|
|
|
|
height: o.height, |
|
|
|
|
|
|
|
hgap: o.hgap, |
|
|
|
|
|
|
|
text: o.text, |
|
|
|
|
|
|
|
keyword: o.keyword, |
|
|
|
|
|
|
|
value: o.value, |
|
|
|
|
|
|
|
py: o.py |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BI.createWidget(BI.extend({ |
|
|
|
|
|
|
|
element: this |
|
|
|
|
|
|
|
}, BI.LogicFactory.createLogic("horizontal", BI.extend(o.logic, { |
|
|
|
|
|
|
|
items: BI.LogicFactory.createLogicItemsByDirection("left", { |
|
|
|
|
|
|
|
type: "bi.center_adapt", |
|
|
|
|
|
|
|
items: [this.radio], |
|
|
|
|
|
|
|
width: 26 |
|
|
|
|
|
|
|
}, this.text) |
|
|
|
|
|
|
|
})))); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
doRedMark: function () { |
|
|
|
|
|
|
|
this.text.doRedMark.apply(this.text, arguments); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
unRedMark: function () { |
|
|
|
|
|
|
|
this.text.unRedMark.apply(this.text, arguments); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
doClick: function () { |
|
|
|
|
|
|
|
BI.SingleSelectComboItem.superclass.doClick.apply(this, arguments); |
|
|
|
|
|
|
|
this.radio.setSelected(this.isSelected()); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setSelected: function (v) { |
|
|
|
|
|
|
|
BI.SingleSelectComboItem.superclass.setSelected.apply(this, arguments); |
|
|
|
|
|
|
|
this.radio.setSelected(v); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BI.shortcut("bi.single_select_combo.item", BI.SingleSelectComboItem);/** |
|
|
|
|
|
|
|
* 选择列表 |
|
|
|
* 选择列表 |
|
|
|
* |
|
|
|
* |
|
|
|
* Created by GUY on 2015/11/1. |
|
|
|
* Created by GUY on 2015/11/1. |
|
|
@ -75119,7 +75053,7 @@ BI.SingleSelectLoader = BI.inherit(BI.Widget, { |
|
|
|
|
|
|
|
|
|
|
|
_createItems: function (items) { |
|
|
|
_createItems: function (items) { |
|
|
|
return BI.createItems(items, { |
|
|
|
return BI.createItems(items, { |
|
|
|
type: "bi.single_select_combo.item", |
|
|
|
type: "bi.single_select_item", |
|
|
|
logic: this.options.logic, |
|
|
|
logic: this.options.logic, |
|
|
|
cls: "bi-list-item-active", |
|
|
|
cls: "bi-list-item-active", |
|
|
|
height: 24, |
|
|
|
height: 24, |
|
|
|