Browse Source

CHART-9360 fix: 调整数值区间控件,使之能接受watermark和allowBlank

es6
Zhenfei.Li 6 years ago
parent
commit
7dce3ed5ac
  1. 15
      dist/2.0/fineui.ie.js
  2. 58
      dist/2.0/fineui.ie.min.js
  3. 15
      dist/2.0/fineui.js
  4. 74
      dist/2.0/fineui.min.js
  5. 4
      dist/base.js
  6. 15
      dist/bundle.ie.js
  7. 58
      dist/bundle.ie.min.js
  8. 15
      dist/bundle.js
  9. 74
      dist/bundle.min.js
  10. 15
      dist/fineui.ie.js
  11. 58
      dist/fineui.ie.min.js
  12. 15
      dist/fineui.js
  13. 74
      dist/fineui.min.js
  14. 15
      dist/fineui_without_jquery_polyfill.js
  15. 4
      dist/utils.min.js
  16. 11
      dist/widget.js
  17. 11
      src/widget/numberinterval/numberinterval.js

15
dist/2.0/fineui.ie.js vendored

@ -45191,8 +45191,8 @@ BI.Checkbox = BI.inherit(BI.BasicButton, {
handler: BI.emptyFn, handler: BI.emptyFn,
width: 16, width: 16,
height: 16, height: 16,
iconWidth: 14, iconWidth: 16,
iconHeight: 14 iconHeight: 16
}, },
render: function () { render: function () {
@ -74354,6 +74354,9 @@ BI.shortcut("bi.number_editor", BI.NumberEditor);// 小于号的值为:0,小
* *
*/ */
BI.NumberInterval = BI.inherit(BI.Single, { BI.NumberInterval = BI.inherit(BI.Single, {
props: {
allowBlank: true
},
constants: { constants: {
typeError: "typeBubble", typeError: "typeBubble",
numberError: "numberBubble", numberError: "numberBubble",
@ -74384,8 +74387,8 @@ BI.NumberInterval = BI.inherit(BI.Single, {
this.smallEditor = BI.createWidget({ this.smallEditor = BI.createWidget({
type: "bi.number_interval_single_editor", type: "bi.number_interval_single_editor",
height: o.height - 2, height: o.height - 2,
watermark: BI.i18nText("BI-Basic_Unrestricted"), watermark: BI.isString(o.watermark) ? o.watermark : BI.i18nText("BI-Basic_Unrestricted"),
allowBlank: true, allowBlank: o.allowBlank,
value: o.min, value: o.min,
level: "warning", level: "warning",
tipType: "success", tipType: "success",
@ -74424,8 +74427,8 @@ BI.NumberInterval = BI.inherit(BI.Single, {
this.bigEditor = BI.createWidget({ this.bigEditor = BI.createWidget({
type: "bi.number_interval_single_editor", type: "bi.number_interval_single_editor",
height: o.height - 2, height: o.height - 2,
watermark: BI.i18nText("BI-Basic_Unrestricted"), watermark: BI.isString(o.watermark) ? o.watermark : BI.i18nText("BI-Basic_Unrestricted"),
allowBlank: true, allowBlank: o.allowBlank,
value: o.max, value: o.max,
level: "warning", level: "warning",
tipType: "success", tipType: "success",

58
dist/2.0/fineui.ie.min.js vendored

File diff suppressed because one or more lines are too long

15
dist/2.0/fineui.js vendored

@ -45595,8 +45595,8 @@ BI.Checkbox = BI.inherit(BI.BasicButton, {
handler: BI.emptyFn, handler: BI.emptyFn,
width: 16, width: 16,
height: 16, height: 16,
iconWidth: 14, iconWidth: 16,
iconHeight: 14 iconHeight: 16
}, },
render: function () { render: function () {
@ -74758,6 +74758,9 @@ BI.shortcut("bi.number_editor", BI.NumberEditor);// 小于号的值为:0,小
* *
*/ */
BI.NumberInterval = BI.inherit(BI.Single, { BI.NumberInterval = BI.inherit(BI.Single, {
props: {
allowBlank: true
},
constants: { constants: {
typeError: "typeBubble", typeError: "typeBubble",
numberError: "numberBubble", numberError: "numberBubble",
@ -74788,8 +74791,8 @@ BI.NumberInterval = BI.inherit(BI.Single, {
this.smallEditor = BI.createWidget({ this.smallEditor = BI.createWidget({
type: "bi.number_interval_single_editor", type: "bi.number_interval_single_editor",
height: o.height - 2, height: o.height - 2,
watermark: BI.i18nText("BI-Basic_Unrestricted"), watermark: BI.isString(o.watermark) ? o.watermark : BI.i18nText("BI-Basic_Unrestricted"),
allowBlank: true, allowBlank: o.allowBlank,
value: o.min, value: o.min,
level: "warning", level: "warning",
tipType: "success", tipType: "success",
@ -74828,8 +74831,8 @@ BI.NumberInterval = BI.inherit(BI.Single, {
this.bigEditor = BI.createWidget({ this.bigEditor = BI.createWidget({
type: "bi.number_interval_single_editor", type: "bi.number_interval_single_editor",
height: o.height - 2, height: o.height - 2,
watermark: BI.i18nText("BI-Basic_Unrestricted"), watermark: BI.isString(o.watermark) ? o.watermark : BI.i18nText("BI-Basic_Unrestricted"),
allowBlank: true, allowBlank: o.allowBlank,
value: o.max, value: o.max,
level: "warning", level: "warning",
tipType: "success", tipType: "success",

74
dist/2.0/fineui.min.js vendored

File diff suppressed because one or more lines are too long

4
dist/base.js vendored

@ -9704,8 +9704,8 @@ BI.Checkbox = BI.inherit(BI.BasicButton, {
handler: BI.emptyFn, handler: BI.emptyFn,
width: 16, width: 16,
height: 16, height: 16,
iconWidth: 14, iconWidth: 16,
iconHeight: 14 iconHeight: 16
}, },
render: function () { render: function () {

15
dist/bundle.ie.js vendored

@ -45191,8 +45191,8 @@ BI.Checkbox = BI.inherit(BI.BasicButton, {
handler: BI.emptyFn, handler: BI.emptyFn,
width: 16, width: 16,
height: 16, height: 16,
iconWidth: 14, iconWidth: 16,
iconHeight: 14 iconHeight: 16
}, },
render: function () { render: function () {
@ -74354,6 +74354,9 @@ BI.shortcut("bi.number_editor", BI.NumberEditor);// 小于号的值为:0,小
* *
*/ */
BI.NumberInterval = BI.inherit(BI.Single, { BI.NumberInterval = BI.inherit(BI.Single, {
props: {
allowBlank: true
},
constants: { constants: {
typeError: "typeBubble", typeError: "typeBubble",
numberError: "numberBubble", numberError: "numberBubble",
@ -74384,8 +74387,8 @@ BI.NumberInterval = BI.inherit(BI.Single, {
this.smallEditor = BI.createWidget({ this.smallEditor = BI.createWidget({
type: "bi.number_interval_single_editor", type: "bi.number_interval_single_editor",
height: o.height - 2, height: o.height - 2,
watermark: BI.i18nText("BI-Basic_Unrestricted"), watermark: BI.isString(o.watermark) ? o.watermark : BI.i18nText("BI-Basic_Unrestricted"),
allowBlank: true, allowBlank: o.allowBlank,
value: o.min, value: o.min,
level: "warning", level: "warning",
tipType: "success", tipType: "success",
@ -74424,8 +74427,8 @@ BI.NumberInterval = BI.inherit(BI.Single, {
this.bigEditor = BI.createWidget({ this.bigEditor = BI.createWidget({
type: "bi.number_interval_single_editor", type: "bi.number_interval_single_editor",
height: o.height - 2, height: o.height - 2,
watermark: BI.i18nText("BI-Basic_Unrestricted"), watermark: BI.isString(o.watermark) ? o.watermark : BI.i18nText("BI-Basic_Unrestricted"),
allowBlank: true, allowBlank: o.allowBlank,
value: o.max, value: o.max,
level: "warning", level: "warning",
tipType: "success", tipType: "success",

58
dist/bundle.ie.min.js vendored

File diff suppressed because one or more lines are too long

15
dist/bundle.js vendored

@ -45595,8 +45595,8 @@ BI.Checkbox = BI.inherit(BI.BasicButton, {
handler: BI.emptyFn, handler: BI.emptyFn,
width: 16, width: 16,
height: 16, height: 16,
iconWidth: 14, iconWidth: 16,
iconHeight: 14 iconHeight: 16
}, },
render: function () { render: function () {
@ -74758,6 +74758,9 @@ BI.shortcut("bi.number_editor", BI.NumberEditor);// 小于号的值为:0,小
* *
*/ */
BI.NumberInterval = BI.inherit(BI.Single, { BI.NumberInterval = BI.inherit(BI.Single, {
props: {
allowBlank: true
},
constants: { constants: {
typeError: "typeBubble", typeError: "typeBubble",
numberError: "numberBubble", numberError: "numberBubble",
@ -74788,8 +74791,8 @@ BI.NumberInterval = BI.inherit(BI.Single, {
this.smallEditor = BI.createWidget({ this.smallEditor = BI.createWidget({
type: "bi.number_interval_single_editor", type: "bi.number_interval_single_editor",
height: o.height - 2, height: o.height - 2,
watermark: BI.i18nText("BI-Basic_Unrestricted"), watermark: BI.isString(o.watermark) ? o.watermark : BI.i18nText("BI-Basic_Unrestricted"),
allowBlank: true, allowBlank: o.allowBlank,
value: o.min, value: o.min,
level: "warning", level: "warning",
tipType: "success", tipType: "success",
@ -74828,8 +74831,8 @@ BI.NumberInterval = BI.inherit(BI.Single, {
this.bigEditor = BI.createWidget({ this.bigEditor = BI.createWidget({
type: "bi.number_interval_single_editor", type: "bi.number_interval_single_editor",
height: o.height - 2, height: o.height - 2,
watermark: BI.i18nText("BI-Basic_Unrestricted"), watermark: BI.isString(o.watermark) ? o.watermark : BI.i18nText("BI-Basic_Unrestricted"),
allowBlank: true, allowBlank: o.allowBlank,
value: o.max, value: o.max,
level: "warning", level: "warning",
tipType: "success", tipType: "success",

74
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

15
dist/fineui.ie.js vendored

@ -45436,8 +45436,8 @@ BI.Checkbox = BI.inherit(BI.BasicButton, {
handler: BI.emptyFn, handler: BI.emptyFn,
width: 16, width: 16,
height: 16, height: 16,
iconWidth: 14, iconWidth: 16,
iconHeight: 14 iconHeight: 16
}, },
render: function () { render: function () {
@ -74599,6 +74599,9 @@ BI.shortcut("bi.number_editor", BI.NumberEditor);// 小于号的值为:0,小
* *
*/ */
BI.NumberInterval = BI.inherit(BI.Single, { BI.NumberInterval = BI.inherit(BI.Single, {
props: {
allowBlank: true
},
constants: { constants: {
typeError: "typeBubble", typeError: "typeBubble",
numberError: "numberBubble", numberError: "numberBubble",
@ -74629,8 +74632,8 @@ BI.NumberInterval = BI.inherit(BI.Single, {
this.smallEditor = BI.createWidget({ this.smallEditor = BI.createWidget({
type: "bi.number_interval_single_editor", type: "bi.number_interval_single_editor",
height: o.height - 2, height: o.height - 2,
watermark: BI.i18nText("BI-Basic_Unrestricted"), watermark: BI.isString(o.watermark) ? o.watermark : BI.i18nText("BI-Basic_Unrestricted"),
allowBlank: true, allowBlank: o.allowBlank,
value: o.min, value: o.min,
level: "warning", level: "warning",
tipType: "success", tipType: "success",
@ -74669,8 +74672,8 @@ BI.NumberInterval = BI.inherit(BI.Single, {
this.bigEditor = BI.createWidget({ this.bigEditor = BI.createWidget({
type: "bi.number_interval_single_editor", type: "bi.number_interval_single_editor",
height: o.height - 2, height: o.height - 2,
watermark: BI.i18nText("BI-Basic_Unrestricted"), watermark: BI.isString(o.watermark) ? o.watermark : BI.i18nText("BI-Basic_Unrestricted"),
allowBlank: true, allowBlank: o.allowBlank,
value: o.max, value: o.max,
level: "warning", level: "warning",
tipType: "success", tipType: "success",

58
dist/fineui.ie.min.js vendored

File diff suppressed because one or more lines are too long

15
dist/fineui.js vendored

@ -45840,8 +45840,8 @@ BI.Checkbox = BI.inherit(BI.BasicButton, {
handler: BI.emptyFn, handler: BI.emptyFn,
width: 16, width: 16,
height: 16, height: 16,
iconWidth: 14, iconWidth: 16,
iconHeight: 14 iconHeight: 16
}, },
render: function () { render: function () {
@ -75003,6 +75003,9 @@ BI.shortcut("bi.number_editor", BI.NumberEditor);// 小于号的值为:0,小
* *
*/ */
BI.NumberInterval = BI.inherit(BI.Single, { BI.NumberInterval = BI.inherit(BI.Single, {
props: {
allowBlank: true
},
constants: { constants: {
typeError: "typeBubble", typeError: "typeBubble",
numberError: "numberBubble", numberError: "numberBubble",
@ -75033,8 +75036,8 @@ BI.NumberInterval = BI.inherit(BI.Single, {
this.smallEditor = BI.createWidget({ this.smallEditor = BI.createWidget({
type: "bi.number_interval_single_editor", type: "bi.number_interval_single_editor",
height: o.height - 2, height: o.height - 2,
watermark: BI.i18nText("BI-Basic_Unrestricted"), watermark: BI.isString(o.watermark) ? o.watermark : BI.i18nText("BI-Basic_Unrestricted"),
allowBlank: true, allowBlank: o.allowBlank,
value: o.min, value: o.min,
level: "warning", level: "warning",
tipType: "success", tipType: "success",
@ -75073,8 +75076,8 @@ BI.NumberInterval = BI.inherit(BI.Single, {
this.bigEditor = BI.createWidget({ this.bigEditor = BI.createWidget({
type: "bi.number_interval_single_editor", type: "bi.number_interval_single_editor",
height: o.height - 2, height: o.height - 2,
watermark: BI.i18nText("BI-Basic_Unrestricted"), watermark: BI.isString(o.watermark) ? o.watermark : BI.i18nText("BI-Basic_Unrestricted"),
allowBlank: true, allowBlank: o.allowBlank,
value: o.max, value: o.max,
level: "warning", level: "warning",
tipType: "success", tipType: "success",

74
dist/fineui.min.js vendored

File diff suppressed because one or more lines are too long

15
dist/fineui_without_jquery_polyfill.js vendored

@ -33036,8 +33036,8 @@ BI.Checkbox = BI.inherit(BI.BasicButton, {
handler: BI.emptyFn, handler: BI.emptyFn,
width: 16, width: 16,
height: 16, height: 16,
iconWidth: 14, iconWidth: 16,
iconHeight: 14 iconHeight: 16
}, },
render: function () { render: function () {
@ -57412,6 +57412,9 @@ BI.shortcut("bi.number_editor", BI.NumberEditor);// 小于号的值为:0,小
* *
*/ */
BI.NumberInterval = BI.inherit(BI.Single, { BI.NumberInterval = BI.inherit(BI.Single, {
props: {
allowBlank: true
},
constants: { constants: {
typeError: "typeBubble", typeError: "typeBubble",
numberError: "numberBubble", numberError: "numberBubble",
@ -57442,8 +57445,8 @@ BI.NumberInterval = BI.inherit(BI.Single, {
this.smallEditor = BI.createWidget({ this.smallEditor = BI.createWidget({
type: "bi.number_interval_single_editor", type: "bi.number_interval_single_editor",
height: o.height - 2, height: o.height - 2,
watermark: BI.i18nText("BI-Basic_Unrestricted"), watermark: BI.isString(o.watermark) ? o.watermark : BI.i18nText("BI-Basic_Unrestricted"),
allowBlank: true, allowBlank: o.allowBlank,
value: o.min, value: o.min,
level: "warning", level: "warning",
tipType: "success", tipType: "success",
@ -57482,8 +57485,8 @@ BI.NumberInterval = BI.inherit(BI.Single, {
this.bigEditor = BI.createWidget({ this.bigEditor = BI.createWidget({
type: "bi.number_interval_single_editor", type: "bi.number_interval_single_editor",
height: o.height - 2, height: o.height - 2,
watermark: BI.i18nText("BI-Basic_Unrestricted"), watermark: BI.isString(o.watermark) ? o.watermark : BI.i18nText("BI-Basic_Unrestricted"),
allowBlank: true, allowBlank: o.allowBlank,
value: o.max, value: o.max,
level: "warning", level: "warning",
tipType: "success", tipType: "success",

4
dist/utils.min.js vendored

File diff suppressed because one or more lines are too long

11
dist/widget.js vendored

@ -14536,6 +14536,9 @@ BI.shortcut("bi.number_editor", BI.NumberEditor);// 小于号的值为:0,小
* *
*/ */
BI.NumberInterval = BI.inherit(BI.Single, { BI.NumberInterval = BI.inherit(BI.Single, {
props: {
allowBlank: true
},
constants: { constants: {
typeError: "typeBubble", typeError: "typeBubble",
numberError: "numberBubble", numberError: "numberBubble",
@ -14566,8 +14569,8 @@ BI.NumberInterval = BI.inherit(BI.Single, {
this.smallEditor = BI.createWidget({ this.smallEditor = BI.createWidget({
type: "bi.number_interval_single_editor", type: "bi.number_interval_single_editor",
height: o.height - 2, height: o.height - 2,
watermark: BI.i18nText("BI-Basic_Unrestricted"), watermark: BI.isString(o.watermark) ? o.watermark : BI.i18nText("BI-Basic_Unrestricted"),
allowBlank: true, allowBlank: o.allowBlank,
value: o.min, value: o.min,
level: "warning", level: "warning",
tipType: "success", tipType: "success",
@ -14606,8 +14609,8 @@ BI.NumberInterval = BI.inherit(BI.Single, {
this.bigEditor = BI.createWidget({ this.bigEditor = BI.createWidget({
type: "bi.number_interval_single_editor", type: "bi.number_interval_single_editor",
height: o.height - 2, height: o.height - 2,
watermark: BI.i18nText("BI-Basic_Unrestricted"), watermark: BI.isString(o.watermark) ? o.watermark : BI.i18nText("BI-Basic_Unrestricted"),
allowBlank: true, allowBlank: o.allowBlank,
value: o.max, value: o.max,
level: "warning", level: "warning",
tipType: "success", tipType: "success",

11
src/widget/numberinterval/numberinterval.js

@ -5,6 +5,9 @@
* *
*/ */
BI.NumberInterval = BI.inherit(BI.Single, { BI.NumberInterval = BI.inherit(BI.Single, {
props: {
allowBlank: true
},
constants: { constants: {
typeError: "typeBubble", typeError: "typeBubble",
numberError: "numberBubble", numberError: "numberBubble",
@ -35,8 +38,8 @@ BI.NumberInterval = BI.inherit(BI.Single, {
this.smallEditor = BI.createWidget({ this.smallEditor = BI.createWidget({
type: "bi.number_interval_single_editor", type: "bi.number_interval_single_editor",
height: o.height - 2, height: o.height - 2,
watermark: BI.i18nText("BI-Basic_Unrestricted"), watermark: BI.isString(o.watermark) ? o.watermark : BI.i18nText("BI-Basic_Unrestricted"),
allowBlank: true, allowBlank: o.allowBlank,
value: o.min, value: o.min,
level: "warning", level: "warning",
tipType: "success", tipType: "success",
@ -75,8 +78,8 @@ BI.NumberInterval = BI.inherit(BI.Single, {
this.bigEditor = BI.createWidget({ this.bigEditor = BI.createWidget({
type: "bi.number_interval_single_editor", type: "bi.number_interval_single_editor",
height: o.height - 2, height: o.height - 2,
watermark: BI.i18nText("BI-Basic_Unrestricted"), watermark: BI.isString(o.watermark) ? o.watermark : BI.i18nText("BI-Basic_Unrestricted"),
allowBlank: true, allowBlank: o.allowBlank,
value: o.max, value: o.max,
level: "warning", level: "warning",
tipType: "success", tipType: "success",

Loading…
Cancel
Save