@ -20,11 +20,9 @@ BI.ColorChooser = BI.inherit(BI.Widget, {
},
_init: function () {
BI.ColorChooser.superclass._init.apply(this, arguments);
var self = this, o = this.options;
if (o.height) {
this.setHeight(o.height - 2);
}
o.height -= 2;
o.value = o.value || "";
this.combo = BI.createWidget({
type: "bi.combo",
@ -11,7 +11,7 @@ BI.ColorChooserTrigger = BI.inherit(BI.Trigger, {
var conf = BI.ColorChooserTrigger.superclass._defaultConfig.apply(this, arguments);
return BI.extend(conf, {
baseCls: (conf.baseCls || "") + " bi-color-chooser-trigger",
height: 22
height: 24
});
@ -11,7 +11,7 @@ BI.LongColorChooserTrigger = BI.inherit(BI.Trigger, {
var conf = BI.LongColorChooserTrigger.superclass._defaultConfig.apply(this, arguments);
@ -17,11 +17,9 @@ BI.IconTextValueCombo = BI.inherit(BI.Widget, {
BI.IconTextValueCombo.superclass._init.apply(this, arguments);
this.trigger = BI.createWidget({
type: "bi.select_icon_text_trigger",
cls: "icon-text-value-trigger",
@ -10,9 +10,6 @@ BI.SearchTextValueCombo = BI.inherit(BI.Widget, {
items: [],
tipType: "",
warningTitle: "",
attributes: {
tabIndex: 0
render: function () {
@ -6,7 +6,7 @@ BI.SearchTextValueTrigger = BI.inherit(BI.Trigger, {
props: function () {
return {
extraCls: "bi-search-text-value-trigger",
height: 22,
height: 24,
watermark: BI.i18nText("BI-Basic_Search")
};
@ -18,11 +18,9 @@ BI.TextValueCheckCombo = BI.inherit(BI.Widget, {
BI.TextValueCheckCombo.superclass._init.apply(this, arguments);
type: "bi.select_text_trigger",
cls: "text-value-trigger",
@ -19,9 +19,9 @@ BI.TextValueCombo = BI.inherit(BI.Widget, {
this.options.height -= 2;
BI.TextValueCombo.superclass._init.apply(this, arguments);
@ -6,7 +6,7 @@ BI.SelectIconTextTrigger = BI.inherit(BI.Trigger, {
_defaultConfig: function () {
return BI.extend(BI.SelectIconTextTrigger.superclass._defaultConfig.apply(this, arguments), {
baseCls: "bi-select-text-trigger",
iconHeight: null,
iconWidth: null,
iconCls: ""
@ -10,7 +10,7 @@ BI.SelectTextTrigger = BI.inherit(BI.Trigger, {
return BI.extend(BI.SelectTextTrigger.superclass._defaultConfig.apply(this, arguments), {
@ -8,7 +8,7 @@ BI.DynamicDateCombo = BI.inherit(BI.Single, {
props: {
baseCls: "bi-dynamic-date-combo bi-border bi-focus-shadow bi-border-radius",
minDate: "1900-01-01",
maxDate: "2099-12-31",
format: "",
@ -19,6 +19,11 @@ BI.DynamicDateCombo = BI.inherit(BI.Single, {
var o = this.options;
BI.DynamicDateCombo.superclass._init.apply(this, arguments);
var self = this, opts = this.options;
@ -8,7 +8,7 @@ BI.DynamicDateTimeCombo = BI.inherit(BI.Single, {
@ -16,6 +16,11 @@ BI.DynamicDateTimeCombo = BI.inherit(BI.Single, {
supportDynamic: true
BI.DynamicDateTimeCombo.superclass._init.apply(this, arguments);
@ -20,11 +20,9 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
BI.MultiSelectCombo.superclass._init.apply(this, arguments);
var assertShowValue = function () {
if (BI.isKey(self._startValue)) {
if (self.storeValue.type === BI.Selection.All) {
@ -19,11 +19,9 @@ BI.MultiSelectNoBarCombo = BI.inherit(BI.Single, {
BI.MultiSelectNoBarCombo.superclass._init.apply(this, arguments);
@ -20,11 +20,9 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
BI.MultiSelectInsertCombo.superclass._init.apply(this, arguments);
if(self.storeValue.type === BI.Selection.All) {
@ -19,11 +19,9 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, {
BI.MultiSelectInsertNoBarCombo.superclass._init.apply(this, arguments);
@ -30,12 +30,9 @@ BI.MultiTreeCombo = BI.inherit(BI.Single, {
BI.MultiTreeCombo.superclass._init.apply(this, arguments);
var isInit = false;
var want2showCounter = false;
@ -30,12 +30,9 @@ BI.MultiTreeInsertCombo = BI.inherit(BI.Single, {
BI.MultiTreeInsertCombo.superclass._init.apply(this, arguments);
@ -31,12 +31,9 @@ BI.MultiTreeListCombo = BI.inherit(BI.Single, {
BI.MultiTreeListCombo.superclass._init.apply(this, arguments);
@ -14,11 +14,9 @@ BI.SearchMultiTextValueCombo = BI.inherit(BI.Single, {
BI.SearchMultiTextValueCombo.superclass._init.apply(this, arguments);
BI.isKey(self._startValue) && (self.storeValue.type === BI.Selection.All ? BI.remove(self.storeValue.value, self._startValue) : BI.pushDistinct(self.storeValue.value, self._startValue));
self._updateAllValue();
@ -18,9 +18,9 @@ BI.SelectTreeCombo = BI.inherit(BI.Widget, {
BI.SelectTreeCombo.superclass._init.apply(this, arguments);
type: "bi.single_tree_trigger",
@ -20,11 +20,9 @@ BI.SingleSelectCombo = BI.inherit(BI.Single, {
BI.SingleSelectCombo.superclass._init.apply(this, arguments);
BI.isKey(self._startValue) && (self.storeValue = self._startValue);
@ -20,11 +20,9 @@ BI.SingleSelectInsertCombo = BI.inherit(BI.Single, {
BI.SingleSelectInsertCombo.superclass._init.apply(this, arguments);
self.trigger.getSearcher().setState(self.storeValue);
@ -14,11 +14,9 @@ BI.TextValueDownListCombo = BI.inherit(BI.Widget, {
BI.TextValueDownListCombo.superclass._init.apply(this, arguments);
this._createValueMap();
var value;
@ -5,13 +5,14 @@ BI.DynamicYearCombo = BI.inherit(BI.Widget, {
behaviors: {},
minDate: "1900-01-01", // 最小日期
maxDate: "2099-12-31", // 最大日期
supportDynamic: true,
BI.DynamicYearCombo.superclass._init.apply(this, arguments);
this.storeValue = o.value;
type: "bi.dynamic_year_trigger",
@ -5,13 +5,14 @@ BI.DynamicYearMonthCombo = BI.inherit(BI.Single, {
BI.DynamicYearMonthCombo.superclass._init.apply(this, arguments);
this.storeTriggerValue = "";
@ -8,7 +8,7 @@ BI.DynamicYearMonthTrigger = BI.inherit(BI.Trigger, {
extraCls: "bi-year-month-trigger",
min: "1900-01-01", // 最小日期
max: "2099-12-31", // 最大日期
beforeInit: function (callback) {
@ -5,13 +5,14 @@ BI.DynamicYearQuarterCombo = BI.inherit(BI.Widget, {
BI.DynamicYearQuarterCombo.superclass._init.apply(this, arguments);
self.storeTriggerValue = "";
@ -8,7 +8,7 @@ BI.DynamicYearQuarterTrigger = BI.inherit(BI.Trigger, {
extraCls: "bi-year-quarter-trigger",