iapyang 6 years ago
parent
commit
83a48e592b
  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. 25
      dist/demo.js
  6. 95
      dist/fineui.ie.js
  7. 14
      dist/fineui.ie.min.js
  8. 95
      dist/fineui.js
  9. 14
      dist/fineui.min.js
  10. 95
      dist/fineui_without_jquery_polyfill.js
  11. 2
      dist/utils.min.js
  12. 95
      dist/widget.js
  13. 14
      src/widget/numberinterval/numberinterval.js
  14. 80
      src/widget/numberinterval/singleeditor/single.editor.js

95
dist/bundle.ie.js vendored

@ -72665,13 +72665,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;
}, },
@ -72702,13 +72705,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;
}, },
@ -73185,7 +73191,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

@ -73069,13 +73069,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;
}, },
@ -73106,13 +73109,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;
}, },
@ -73589,7 +73595,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

25
dist/demo.js vendored

@ -6126,30 +6126,7 @@ Demo.HtapeLayout = BI.inherit(BI.Widget, {
}; };
} }
}); });
BI.shortcut("demo.htape", Demo.HtapeLayout);Demo.InlineVerticalLayout = BI.inherit(BI.Widget, { BI.shortcut("demo.htape", Demo.HtapeLayout);/**
props: {
baseCls: "demo-absolute"
},
render: function () {
return {
type: "bi.inline_vertical_adapt",
items: [{
type: "bi.label",
text: "绝对布局",
cls: "layout-bg1",
width: 300,
height: 200
}, {
type: "bi.label",
text: "绝对布局",
cls: "layout-bg1",
width: 300,
height: 100
}]
};
}
});
BI.shortcut("demo.inline_vertical", Demo.InlineVerticalLayout);/**
* Created by User on 2017/3/22. * Created by User on 2017/3/22.
*/ */
Demo.LeftRightVerticalAdaptLayout = BI.inherit(BI.Widget, { Demo.LeftRightVerticalAdaptLayout = BI.inherit(BI.Widget, {

95
dist/fineui.ie.js vendored

@ -72910,13 +72910,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;
}, },
@ -72947,13 +72950,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;
}, },
@ -73430,7 +73436,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

@ -73314,13 +73314,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;
}, },
@ -73351,13 +73354,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;
}, },
@ -73834,7 +73840,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

@ -56128,13 +56128,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;
}, },
@ -56165,13 +56168,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;
}, },
@ -56648,7 +56654,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