Browse Source

Merge pull request #798 in VISUAL/fineui from ~TELLER/fineui:bugfix/bugfix to master

* commit '83a48e592bf3a47f0f21daa1379c5b6469653b5f':
  update
es6
windy 6 years ago
parent
commit
f0e4b70237
  1. 95
      dist/bundle.ie.js
  2. 16
      dist/bundle.ie.min.js
  3. 95
      dist/bundle.js
  4. 16
      dist/bundle.min.js
  5. 95
      dist/fineui.ie.js
  6. 14
      dist/fineui.ie.min.js
  7. 95
      dist/fineui.js
  8. 14
      dist/fineui.min.js
  9. 95
      dist/fineui_without_jquery_polyfill.js
  10. 2
      dist/utils.min.js
  11. 95
      dist/widget.js
  12. 14
      src/widget/numberinterval/numberinterval.js
  13. 80
      src/widget/numberinterval/singleeditor/single.editor.js

95
dist/bundle.ie.js vendored

@ -72666,13 +72666,16 @@ BI.NumberInterval = BI.inherit(BI.Single, {
var self = this, c = this.constants, o = this.options; var self = this, c = this.constants, o = this.options;
BI.NumberInterval.superclass._init.apply(this, arguments); BI.NumberInterval.superclass._init.apply(this, arguments);
this.smallEditor = BI.createWidget({ this.smallEditor = BI.createWidget({
type: "bi.editor", type: "bi.number_interval_single_editor",
height: o.height - 2, height: o.height - 2,
watermark: BI.i18nText("BI-Basic_Unrestricted"), watermark: BI.i18nText("BI-Basic_Unrestricted"),
allowBlank: true, allowBlank: true,
value: o.min, value: o.min,
level: "warning", level: "warning",
tipType: "warning", tipType: "success",
title: function () {
return self.smallEditor && self.smallEditor.getValue();
},
quitChecker: function () { quitChecker: function () {
return false; return false;
}, },
@ -72703,13 +72706,16 @@ BI.NumberInterval = BI.inherit(BI.Single, {
}); });
this.bigEditor = BI.createWidget({ this.bigEditor = BI.createWidget({
type: "bi.editor", type: "bi.number_interval_single_editor",
height: o.height - 2, height: o.height - 2,
watermark: BI.i18nText("BI-Basic_Unrestricted"), watermark: BI.i18nText("BI-Basic_Unrestricted"),
allowBlank: true, allowBlank: true,
value: o.max, value: o.max,
level: "warning", level: "warning",
tipType: "warning", tipType: "success",
title: function () {
return self.bigEditor && self.bigEditor.getValue();
},
quitChecker: function () { quitChecker: function () {
return false; return false;
}, },
@ -73186,7 +73192,86 @@ BI.NumberInterval.EVENT_CHANGE = "EVENT_CHANGE";
BI.NumberInterval.EVENT_CONFIRM = "EVENT_CONFIRM"; BI.NumberInterval.EVENT_CONFIRM = "EVENT_CONFIRM";
BI.NumberInterval.EVENT_VALID = "EVENT_VALID"; BI.NumberInterval.EVENT_VALID = "EVENT_VALID";
BI.NumberInterval.EVENT_ERROR = "EVENT_ERROR"; BI.NumberInterval.EVENT_ERROR = "EVENT_ERROR";
BI.shortcut("bi.number_interval", BI.NumberInterval);/** BI.shortcut("bi.number_interval", BI.NumberInterval);BI.NumberIntervalSingleEidtor = BI.inherit(BI.Single, {
props: {
tipType: "success",
title: ""
},
render: function () {
var self = this, o = this.options;
return {
type: "bi.vertical",
items: [{
type: "bi.editor",
ref: function (_ref) {
self.editor = _ref;
},
height: o.height - 2,
watermark: o.watermark,
allowBlank: o.allowBlank,
value: o.value,
level: o.level,
quitChecker: o.quitChecker,
validationChecker: o.validationChecker,
listeners: [{
eventName: BI.Editor.EVENT_ERROR,
action: function () {
self.fireEvent(BI.Editor.EVENT_ERROR, arguments);
}
}, {
eventName: BI.Editor.EVENT_FOCUS,
action: function () {
self.fireEvent(BI.Editor.EVENT_FOCUS, arguments);
}
}, {
eventName: BI.Editor.EVENT_BLUR,
action: function () {
self.fireEvent(BI.Editor.EVENT_BLUR, arguments);
}
}, {
eventName: BI.Editor.EVENT_VALID,
action: function () {
self.fireEvent(BI.Editor.EVENT_VALID, arguments);
}
}, {
eventName: BI.Editor.EVENT_CHANGE,
action: function () {
self.fireEvent(BI.Editor.EVENT_CHANGE, arguments);
}
}, {
eventName: BI.Editor.EVENT_CONFIRM,
action: function () {
self.fireEvent(BI.Editor.EVENT_CONFIRM, arguments);
}
}]
}]
};
},
isValid: function () {
return this.editor.isValid();
},
getValue: function () {
return this.editor.getValue();
},
setTitle: function () {
return this.editor.setTitle();
},
setEnable: function () {
return this.editor.setEnable();
},
setValue: function (v) {
return this.editor.setValue(v);
}
});
BI.shortcut("bi.number_interval_single_editor", BI.NumberIntervalSingleEidtor);/**
* 季度下拉框 * 季度下拉框
* *
* Created by GUY on 2015/8/28. * Created by GUY on 2015/8/28.

16
dist/bundle.ie.min.js vendored

File diff suppressed because one or more lines are too long

95
dist/bundle.js vendored

@ -73070,13 +73070,16 @@ BI.NumberInterval = BI.inherit(BI.Single, {
var self = this, c = this.constants, o = this.options; var self = this, c = this.constants, o = this.options;
BI.NumberInterval.superclass._init.apply(this, arguments); BI.NumberInterval.superclass._init.apply(this, arguments);
this.smallEditor = BI.createWidget({ this.smallEditor = BI.createWidget({
type: "bi.editor", type: "bi.number_interval_single_editor",
height: o.height - 2, height: o.height - 2,
watermark: BI.i18nText("BI-Basic_Unrestricted"), watermark: BI.i18nText("BI-Basic_Unrestricted"),
allowBlank: true, allowBlank: true,
value: o.min, value: o.min,
level: "warning", level: "warning",
tipType: "warning", tipType: "success",
title: function () {
return self.smallEditor && self.smallEditor.getValue();
},
quitChecker: function () { quitChecker: function () {
return false; return false;
}, },
@ -73107,13 +73110,16 @@ BI.NumberInterval = BI.inherit(BI.Single, {
}); });
this.bigEditor = BI.createWidget({ this.bigEditor = BI.createWidget({
type: "bi.editor", type: "bi.number_interval_single_editor",
height: o.height - 2, height: o.height - 2,
watermark: BI.i18nText("BI-Basic_Unrestricted"), watermark: BI.i18nText("BI-Basic_Unrestricted"),
allowBlank: true, allowBlank: true,
value: o.max, value: o.max,
level: "warning", level: "warning",
tipType: "warning", tipType: "success",
title: function () {
return self.bigEditor && self.bigEditor.getValue();
},
quitChecker: function () { quitChecker: function () {
return false; return false;
}, },
@ -73590,7 +73596,86 @@ BI.NumberInterval.EVENT_CHANGE = "EVENT_CHANGE";
BI.NumberInterval.EVENT_CONFIRM = "EVENT_CONFIRM"; BI.NumberInterval.EVENT_CONFIRM = "EVENT_CONFIRM";
BI.NumberInterval.EVENT_VALID = "EVENT_VALID"; BI.NumberInterval.EVENT_VALID = "EVENT_VALID";
BI.NumberInterval.EVENT_ERROR = "EVENT_ERROR"; BI.NumberInterval.EVENT_ERROR = "EVENT_ERROR";
BI.shortcut("bi.number_interval", BI.NumberInterval);/** BI.shortcut("bi.number_interval", BI.NumberInterval);BI.NumberIntervalSingleEidtor = BI.inherit(BI.Single, {
props: {
tipType: "success",
title: ""
},
render: function () {
var self = this, o = this.options;
return {
type: "bi.vertical",
items: [{
type: "bi.editor",
ref: function (_ref) {
self.editor = _ref;
},
height: o.height - 2,
watermark: o.watermark,
allowBlank: o.allowBlank,
value: o.value,
level: o.level,
quitChecker: o.quitChecker,
validationChecker: o.validationChecker,
listeners: [{
eventName: BI.Editor.EVENT_ERROR,
action: function () {
self.fireEvent(BI.Editor.EVENT_ERROR, arguments);
}
}, {
eventName: BI.Editor.EVENT_FOCUS,
action: function () {
self.fireEvent(BI.Editor.EVENT_FOCUS, arguments);
}
}, {
eventName: BI.Editor.EVENT_BLUR,
action: function () {
self.fireEvent(BI.Editor.EVENT_BLUR, arguments);
}
}, {
eventName: BI.Editor.EVENT_VALID,
action: function () {
self.fireEvent(BI.Editor.EVENT_VALID, arguments);
}
}, {
eventName: BI.Editor.EVENT_CHANGE,
action: function () {
self.fireEvent(BI.Editor.EVENT_CHANGE, arguments);
}
}, {
eventName: BI.Editor.EVENT_CONFIRM,
action: function () {
self.fireEvent(BI.Editor.EVENT_CONFIRM, arguments);
}
}]
}]
};
},
isValid: function () {
return this.editor.isValid();
},
getValue: function () {
return this.editor.getValue();
},
setTitle: function () {
return this.editor.setTitle();
},
setEnable: function () {
return this.editor.setEnable();
},
setValue: function (v) {
return this.editor.setValue(v);
}
});
BI.shortcut("bi.number_interval_single_editor", BI.NumberIntervalSingleEidtor);/**
* 季度下拉框 * 季度下拉框
* *
* Created by GUY on 2015/8/28. * Created by GUY on 2015/8/28.

16
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

95
dist/fineui.ie.js vendored

@ -72911,13 +72911,16 @@ BI.NumberInterval = BI.inherit(BI.Single, {
var self = this, c = this.constants, o = this.options; var self = this, c = this.constants, o = this.options;
BI.NumberInterval.superclass._init.apply(this, arguments); BI.NumberInterval.superclass._init.apply(this, arguments);
this.smallEditor = BI.createWidget({ this.smallEditor = BI.createWidget({
type: "bi.editor", type: "bi.number_interval_single_editor",
height: o.height - 2, height: o.height - 2,
watermark: BI.i18nText("BI-Basic_Unrestricted"), watermark: BI.i18nText("BI-Basic_Unrestricted"),
allowBlank: true, allowBlank: true,
value: o.min, value: o.min,
level: "warning", level: "warning",
tipType: "warning", tipType: "success",
title: function () {
return self.smallEditor && self.smallEditor.getValue();
},
quitChecker: function () { quitChecker: function () {
return false; return false;
}, },
@ -72948,13 +72951,16 @@ BI.NumberInterval = BI.inherit(BI.Single, {
}); });
this.bigEditor = BI.createWidget({ this.bigEditor = BI.createWidget({
type: "bi.editor", type: "bi.number_interval_single_editor",
height: o.height - 2, height: o.height - 2,
watermark: BI.i18nText("BI-Basic_Unrestricted"), watermark: BI.i18nText("BI-Basic_Unrestricted"),
allowBlank: true, allowBlank: true,
value: o.max, value: o.max,
level: "warning", level: "warning",
tipType: "warning", tipType: "success",
title: function () {
return self.bigEditor && self.bigEditor.getValue();
},
quitChecker: function () { quitChecker: function () {
return false; return false;
}, },
@ -73431,7 +73437,86 @@ BI.NumberInterval.EVENT_CHANGE = "EVENT_CHANGE";
BI.NumberInterval.EVENT_CONFIRM = "EVENT_CONFIRM"; BI.NumberInterval.EVENT_CONFIRM = "EVENT_CONFIRM";
BI.NumberInterval.EVENT_VALID = "EVENT_VALID"; BI.NumberInterval.EVENT_VALID = "EVENT_VALID";
BI.NumberInterval.EVENT_ERROR = "EVENT_ERROR"; BI.NumberInterval.EVENT_ERROR = "EVENT_ERROR";
BI.shortcut("bi.number_interval", BI.NumberInterval);/** BI.shortcut("bi.number_interval", BI.NumberInterval);BI.NumberIntervalSingleEidtor = BI.inherit(BI.Single, {
props: {
tipType: "success",
title: ""
},
render: function () {
var self = this, o = this.options;
return {
type: "bi.vertical",
items: [{
type: "bi.editor",
ref: function (_ref) {
self.editor = _ref;
},
height: o.height - 2,
watermark: o.watermark,
allowBlank: o.allowBlank,
value: o.value,
level: o.level,
quitChecker: o.quitChecker,
validationChecker: o.validationChecker,
listeners: [{
eventName: BI.Editor.EVENT_ERROR,
action: function () {
self.fireEvent(BI.Editor.EVENT_ERROR, arguments);
}
}, {
eventName: BI.Editor.EVENT_FOCUS,
action: function () {
self.fireEvent(BI.Editor.EVENT_FOCUS, arguments);
}
}, {
eventName: BI.Editor.EVENT_BLUR,
action: function () {
self.fireEvent(BI.Editor.EVENT_BLUR, arguments);
}
}, {
eventName: BI.Editor.EVENT_VALID,
action: function () {
self.fireEvent(BI.Editor.EVENT_VALID, arguments);
}
}, {
eventName: BI.Editor.EVENT_CHANGE,
action: function () {
self.fireEvent(BI.Editor.EVENT_CHANGE, arguments);
}
}, {
eventName: BI.Editor.EVENT_CONFIRM,
action: function () {
self.fireEvent(BI.Editor.EVENT_CONFIRM, arguments);
}
}]
}]
};
},
isValid: function () {
return this.editor.isValid();
},
getValue: function () {
return this.editor.getValue();
},
setTitle: function () {
return this.editor.setTitle();
},
setEnable: function () {
return this.editor.setEnable();
},
setValue: function (v) {
return this.editor.setValue(v);
}
});
BI.shortcut("bi.number_interval_single_editor", BI.NumberIntervalSingleEidtor);/**
* 季度下拉框 * 季度下拉框
* *
* Created by GUY on 2015/8/28. * Created by GUY on 2015/8/28.

14
dist/fineui.ie.min.js vendored

File diff suppressed because one or more lines are too long

95
dist/fineui.js vendored

@ -73315,13 +73315,16 @@ BI.NumberInterval = BI.inherit(BI.Single, {
var self = this, c = this.constants, o = this.options; var self = this, c = this.constants, o = this.options;
BI.NumberInterval.superclass._init.apply(this, arguments); BI.NumberInterval.superclass._init.apply(this, arguments);
this.smallEditor = BI.createWidget({ this.smallEditor = BI.createWidget({
type: "bi.editor", type: "bi.number_interval_single_editor",
height: o.height - 2, height: o.height - 2,
watermark: BI.i18nText("BI-Basic_Unrestricted"), watermark: BI.i18nText("BI-Basic_Unrestricted"),
allowBlank: true, allowBlank: true,
value: o.min, value: o.min,
level: "warning", level: "warning",
tipType: "warning", tipType: "success",
title: function () {
return self.smallEditor && self.smallEditor.getValue();
},
quitChecker: function () { quitChecker: function () {
return false; return false;
}, },
@ -73352,13 +73355,16 @@ BI.NumberInterval = BI.inherit(BI.Single, {
}); });
this.bigEditor = BI.createWidget({ this.bigEditor = BI.createWidget({
type: "bi.editor", type: "bi.number_interval_single_editor",
height: o.height - 2, height: o.height - 2,
watermark: BI.i18nText("BI-Basic_Unrestricted"), watermark: BI.i18nText("BI-Basic_Unrestricted"),
allowBlank: true, allowBlank: true,
value: o.max, value: o.max,
level: "warning", level: "warning",
tipType: "warning", tipType: "success",
title: function () {
return self.bigEditor && self.bigEditor.getValue();
},
quitChecker: function () { quitChecker: function () {
return false; return false;
}, },
@ -73835,7 +73841,86 @@ BI.NumberInterval.EVENT_CHANGE = "EVENT_CHANGE";
BI.NumberInterval.EVENT_CONFIRM = "EVENT_CONFIRM"; BI.NumberInterval.EVENT_CONFIRM = "EVENT_CONFIRM";
BI.NumberInterval.EVENT_VALID = "EVENT_VALID"; BI.NumberInterval.EVENT_VALID = "EVENT_VALID";
BI.NumberInterval.EVENT_ERROR = "EVENT_ERROR"; BI.NumberInterval.EVENT_ERROR = "EVENT_ERROR";
BI.shortcut("bi.number_interval", BI.NumberInterval);/** BI.shortcut("bi.number_interval", BI.NumberInterval);BI.NumberIntervalSingleEidtor = BI.inherit(BI.Single, {
props: {
tipType: "success",
title: ""
},
render: function () {
var self = this, o = this.options;
return {
type: "bi.vertical",
items: [{
type: "bi.editor",
ref: function (_ref) {
self.editor = _ref;
},
height: o.height - 2,
watermark: o.watermark,
allowBlank: o.allowBlank,
value: o.value,
level: o.level,
quitChecker: o.quitChecker,
validationChecker: o.validationChecker,
listeners: [{
eventName: BI.Editor.EVENT_ERROR,
action: function () {
self.fireEvent(BI.Editor.EVENT_ERROR, arguments);
}
}, {
eventName: BI.Editor.EVENT_FOCUS,
action: function () {
self.fireEvent(BI.Editor.EVENT_FOCUS, arguments);
}
}, {
eventName: BI.Editor.EVENT_BLUR,
action: function () {
self.fireEvent(BI.Editor.EVENT_BLUR, arguments);
}
}, {
eventName: BI.Editor.EVENT_VALID,
action: function () {
self.fireEvent(BI.Editor.EVENT_VALID, arguments);
}
}, {
eventName: BI.Editor.EVENT_CHANGE,
action: function () {
self.fireEvent(BI.Editor.EVENT_CHANGE, arguments);
}
}, {
eventName: BI.Editor.EVENT_CONFIRM,
action: function () {
self.fireEvent(BI.Editor.EVENT_CONFIRM, arguments);
}
}]
}]
};
},
isValid: function () {
return this.editor.isValid();
},
getValue: function () {
return this.editor.getValue();
},
setTitle: function () {
return this.editor.setTitle();
},
setEnable: function () {
return this.editor.setEnable();
},
setValue: function (v) {
return this.editor.setValue(v);
}
});
BI.shortcut("bi.number_interval_single_editor", BI.NumberIntervalSingleEidtor);/**
* 季度下拉框 * 季度下拉框
* *
* Created by GUY on 2015/8/28. * Created by GUY on 2015/8/28.

14
dist/fineui.min.js vendored

File diff suppressed because one or more lines are too long

95
dist/fineui_without_jquery_polyfill.js vendored

@ -56129,13 +56129,16 @@ BI.NumberInterval = BI.inherit(BI.Single, {
var self = this, c = this.constants, o = this.options; var self = this, c = this.constants, o = this.options;
BI.NumberInterval.superclass._init.apply(this, arguments); BI.NumberInterval.superclass._init.apply(this, arguments);
this.smallEditor = BI.createWidget({ this.smallEditor = BI.createWidget({
type: "bi.editor", type: "bi.number_interval_single_editor",
height: o.height - 2, height: o.height - 2,
watermark: BI.i18nText("BI-Basic_Unrestricted"), watermark: BI.i18nText("BI-Basic_Unrestricted"),
allowBlank: true, allowBlank: true,
value: o.min, value: o.min,
level: "warning", level: "warning",
tipType: "warning", tipType: "success",
title: function () {
return self.smallEditor && self.smallEditor.getValue();
},
quitChecker: function () { quitChecker: function () {
return false; return false;
}, },
@ -56166,13 +56169,16 @@ BI.NumberInterval = BI.inherit(BI.Single, {
}); });
this.bigEditor = BI.createWidget({ this.bigEditor = BI.createWidget({
type: "bi.editor", type: "bi.number_interval_single_editor",
height: o.height - 2, height: o.height - 2,
watermark: BI.i18nText("BI-Basic_Unrestricted"), watermark: BI.i18nText("BI-Basic_Unrestricted"),
allowBlank: true, allowBlank: true,
value: o.max, value: o.max,
level: "warning", level: "warning",
tipType: "warning", tipType: "success",
title: function () {
return self.bigEditor && self.bigEditor.getValue();
},
quitChecker: function () { quitChecker: function () {
return false; return false;
}, },
@ -56649,7 +56655,86 @@ BI.NumberInterval.EVENT_CHANGE = "EVENT_CHANGE";
BI.NumberInterval.EVENT_CONFIRM = "EVENT_CONFIRM"; BI.NumberInterval.EVENT_CONFIRM = "EVENT_CONFIRM";
BI.NumberInterval.EVENT_VALID = "EVENT_VALID"; BI.NumberInterval.EVENT_VALID = "EVENT_VALID";
BI.NumberInterval.EVENT_ERROR = "EVENT_ERROR"; BI.NumberInterval.EVENT_ERROR = "EVENT_ERROR";
BI.shortcut("bi.number_interval", BI.NumberInterval);/** BI.shortcut("bi.number_interval", BI.NumberInterval);BI.NumberIntervalSingleEidtor = BI.inherit(BI.Single, {
props: {
tipType: "success",
title: ""
},
render: function () {
var self = this, o = this.options;
return {
type: "bi.vertical",
items: [{
type: "bi.editor",
ref: function (_ref) {
self.editor = _ref;
},
height: o.height - 2,
watermark: o.watermark,
allowBlank: o.allowBlank,
value: o.value,
level: o.level,
quitChecker: o.quitChecker,
validationChecker: o.validationChecker,
listeners: [{
eventName: BI.Editor.EVENT_ERROR,
action: function () {
self.fireEvent(BI.Editor.EVENT_ERROR, arguments);
}
}, {
eventName: BI.Editor.EVENT_FOCUS,
action: function () {
self.fireEvent(BI.Editor.EVENT_FOCUS, arguments);
}
}, {
eventName: BI.Editor.EVENT_BLUR,
action: function () {
self.fireEvent(BI.Editor.EVENT_BLUR, arguments);
}
}, {
eventName: BI.Editor.EVENT_VALID,
action: function () {
self.fireEvent(BI.Editor.EVENT_VALID, arguments);
}
}, {
eventName: BI.Editor.EVENT_CHANGE,
action: function () {
self.fireEvent(BI.Editor.EVENT_CHANGE, arguments);
}
}, {
eventName: BI.Editor.EVENT_CONFIRM,
action: function () {
self.fireEvent(BI.Editor.EVENT_CONFIRM, arguments);
}
}]
}]
};
},
isValid: function () {
return this.editor.isValid();
},
getValue: function () {
return this.editor.getValue();
},
setTitle: function () {
return this.editor.setTitle();
},
setEnable: function () {
return this.editor.setEnable();
},
setValue: function (v) {
return this.editor.setValue(v);
}
});
BI.shortcut("bi.number_interval_single_editor", BI.NumberIntervalSingleEidtor);/**
* 季度下拉框 * 季度下拉框
* *
* Created by GUY on 2015/8/28. * Created by GUY on 2015/8/28.

2
dist/utils.min.js vendored

File diff suppressed because one or more lines are too long

95
dist/widget.js vendored

@ -13645,13 +13645,16 @@ BI.NumberInterval = BI.inherit(BI.Single, {
var self = this, c = this.constants, o = this.options; var self = this, c = this.constants, o = this.options;
BI.NumberInterval.superclass._init.apply(this, arguments); BI.NumberInterval.superclass._init.apply(this, arguments);
this.smallEditor = BI.createWidget({ this.smallEditor = BI.createWidget({
type: "bi.editor", type: "bi.number_interval_single_editor",
height: o.height - 2, height: o.height - 2,
watermark: BI.i18nText("BI-Basic_Unrestricted"), watermark: BI.i18nText("BI-Basic_Unrestricted"),
allowBlank: true, allowBlank: true,
value: o.min, value: o.min,
level: "warning", level: "warning",
tipType: "warning", tipType: "success",
title: function () {
return self.smallEditor && self.smallEditor.getValue();
},
quitChecker: function () { quitChecker: function () {
return false; return false;
}, },
@ -13682,13 +13685,16 @@ BI.NumberInterval = BI.inherit(BI.Single, {
}); });
this.bigEditor = BI.createWidget({ this.bigEditor = BI.createWidget({
type: "bi.editor", type: "bi.number_interval_single_editor",
height: o.height - 2, height: o.height - 2,
watermark: BI.i18nText("BI-Basic_Unrestricted"), watermark: BI.i18nText("BI-Basic_Unrestricted"),
allowBlank: true, allowBlank: true,
value: o.max, value: o.max,
level: "warning", level: "warning",
tipType: "warning", tipType: "success",
title: function () {
return self.bigEditor && self.bigEditor.getValue();
},
quitChecker: function () { quitChecker: function () {
return false; return false;
}, },
@ -14165,7 +14171,86 @@ BI.NumberInterval.EVENT_CHANGE = "EVENT_CHANGE";
BI.NumberInterval.EVENT_CONFIRM = "EVENT_CONFIRM"; BI.NumberInterval.EVENT_CONFIRM = "EVENT_CONFIRM";
BI.NumberInterval.EVENT_VALID = "EVENT_VALID"; BI.NumberInterval.EVENT_VALID = "EVENT_VALID";
BI.NumberInterval.EVENT_ERROR = "EVENT_ERROR"; BI.NumberInterval.EVENT_ERROR = "EVENT_ERROR";
BI.shortcut("bi.number_interval", BI.NumberInterval);/** BI.shortcut("bi.number_interval", BI.NumberInterval);BI.NumberIntervalSingleEidtor = BI.inherit(BI.Single, {
props: {
tipType: "success",
title: ""
},
render: function () {
var self = this, o = this.options;
return {
type: "bi.vertical",
items: [{
type: "bi.editor",
ref: function (_ref) {
self.editor = _ref;
},
height: o.height - 2,
watermark: o.watermark,
allowBlank: o.allowBlank,
value: o.value,
level: o.level,
quitChecker: o.quitChecker,
validationChecker: o.validationChecker,
listeners: [{
eventName: BI.Editor.EVENT_ERROR,
action: function () {
self.fireEvent(BI.Editor.EVENT_ERROR, arguments);
}
}, {
eventName: BI.Editor.EVENT_FOCUS,
action: function () {
self.fireEvent(BI.Editor.EVENT_FOCUS, arguments);
}
}, {
eventName: BI.Editor.EVENT_BLUR,
action: function () {
self.fireEvent(BI.Editor.EVENT_BLUR, arguments);
}
}, {
eventName: BI.Editor.EVENT_VALID,
action: function () {
self.fireEvent(BI.Editor.EVENT_VALID, arguments);
}
}, {
eventName: BI.Editor.EVENT_CHANGE,
action: function () {
self.fireEvent(BI.Editor.EVENT_CHANGE, arguments);
}
}, {
eventName: BI.Editor.EVENT_CONFIRM,
action: function () {
self.fireEvent(BI.Editor.EVENT_CONFIRM, arguments);
}
}]
}]
};
},
isValid: function () {
return this.editor.isValid();
},
getValue: function () {
return this.editor.getValue();
},
setTitle: function () {
return this.editor.setTitle();
},
setEnable: function () {
return this.editor.setEnable();
},
setValue: function (v) {
return this.editor.setValue(v);
}
});
BI.shortcut("bi.number_interval_single_editor", BI.NumberIntervalSingleEidtor);/**
* 季度下拉框 * 季度下拉框
* *
* Created by GUY on 2015/8/28. * Created by GUY on 2015/8/28.

14
src/widget/numberinterval/numberinterval.js

@ -33,13 +33,16 @@ BI.NumberInterval = BI.inherit(BI.Single, {
var self = this, c = this.constants, o = this.options; var self = this, c = this.constants, o = this.options;
BI.NumberInterval.superclass._init.apply(this, arguments); BI.NumberInterval.superclass._init.apply(this, arguments);
this.smallEditor = BI.createWidget({ this.smallEditor = BI.createWidget({
type: "bi.editor", type: "bi.number_interval_single_editor",
height: o.height - 2, height: o.height - 2,
watermark: BI.i18nText("BI-Basic_Unrestricted"), watermark: BI.i18nText("BI-Basic_Unrestricted"),
allowBlank: true, allowBlank: true,
value: o.min, value: o.min,
level: "warning", level: "warning",
tipType: "warning", tipType: "success",
title: function () {
return self.smallEditor && self.smallEditor.getValue();
},
quitChecker: function () { quitChecker: function () {
return false; return false;
}, },
@ -70,13 +73,16 @@ BI.NumberInterval = BI.inherit(BI.Single, {
}); });
this.bigEditor = BI.createWidget({ this.bigEditor = BI.createWidget({
type: "bi.editor", type: "bi.number_interval_single_editor",
height: o.height - 2, height: o.height - 2,
watermark: BI.i18nText("BI-Basic_Unrestricted"), watermark: BI.i18nText("BI-Basic_Unrestricted"),
allowBlank: true, allowBlank: true,
value: o.max, value: o.max,
level: "warning", level: "warning",
tipType: "warning", tipType: "success",
title: function () {
return self.bigEditor && self.bigEditor.getValue();
},
quitChecker: function () { quitChecker: function () {
return false; return false;
}, },

80
src/widget/numberinterval/singleeditor/single.editor.js

@ -0,0 +1,80 @@
BI.NumberIntervalSingleEidtor = BI.inherit(BI.Single, {
props: {
tipType: "success",
title: ""
},
render: function () {
var self = this, o = this.options;
return {
type: "bi.vertical",
items: [{
type: "bi.editor",
ref: function (_ref) {
self.editor = _ref;
},
height: o.height - 2,
watermark: o.watermark,
allowBlank: o.allowBlank,
value: o.value,
level: o.level,
quitChecker: o.quitChecker,
validationChecker: o.validationChecker,
listeners: [{
eventName: BI.Editor.EVENT_ERROR,
action: function () {
self.fireEvent(BI.Editor.EVENT_ERROR, arguments);
}
}, {
eventName: BI.Editor.EVENT_FOCUS,
action: function () {
self.fireEvent(BI.Editor.EVENT_FOCUS, arguments);
}
}, {
eventName: BI.Editor.EVENT_BLUR,
action: function () {
self.fireEvent(BI.Editor.EVENT_BLUR, arguments);
}
}, {
eventName: BI.Editor.EVENT_VALID,
action: function () {
self.fireEvent(BI.Editor.EVENT_VALID, arguments);
}
}, {
eventName: BI.Editor.EVENT_CHANGE,
action: function () {
self.fireEvent(BI.Editor.EVENT_CHANGE, arguments);
}
}, {
eventName: BI.Editor.EVENT_CONFIRM,
action: function () {
self.fireEvent(BI.Editor.EVENT_CONFIRM, arguments);
}
}]
}]
};
},
isValid: function () {
return this.editor.isValid();
},
getValue: function () {
return this.editor.getValue();
},
setTitle: function () {
return this.editor.setTitle();
},
setEnable: function () {
return this.editor.setEnable();
},
setValue: function (v) {
return this.editor.setValue(v);
}
});
BI.shortcut("bi.number_interval_single_editor", BI.NumberIntervalSingleEidtor);
Loading…
Cancel
Save