Browse Source

BI-41980 fix: 时间默认值和提示

es6
qcc 6 years ago
parent
commit
b406d635fa
  1. 19
      dist/2.0/fineui.ie.js
  2. 19
      dist/2.0/fineui.js
  3. 19
      dist/bundle.ie.js
  4. 19
      dist/bundle.js
  5. 19
      dist/fineui.ie.js
  6. 19
      dist/fineui.js
  7. 19
      dist/fineui_without_jquery_polyfill.js
  8. 19
      dist/widget.js
  9. 16
      src/widget/time/datetime.popup.js
  10. 3
      src/widget/time/time.trigger.js

19
dist/2.0/fineui.ie.js vendored

@ -78887,15 +78887,9 @@ BI.shortcut("bi.single_tree_trigger", BI.SingleTreeTrigger);!(function () {
}; };
}, },
setValue: function (v) { setValue: function (value) {
var value = v; if (this._checkValueValid(value)) {
if (BI.isNull(value)) { this.timeSelect.setValue();
var date = BI.getDate();
this.timeSelect.setValue({
hour: date.getHours(),
minute: date.getMinutes(),
second: date.getSeconds()
});
} else { } else {
this.timeSelect.setValue({ this.timeSelect.setValue({
hour: value.hour, hour: value.hour,
@ -78907,6 +78901,10 @@ BI.shortcut("bi.single_tree_trigger", BI.SingleTreeTrigger);!(function () {
getValue: function () { getValue: function () {
return this.timeSelect.getValue(); return this.timeSelect.getValue();
},
_checkValueValid: function (value) {
return BI.isNull(value) || BI.isEmptyObject(value) || BI.isEmptyString(value);
} }
}); });
BI.TimePopup.BUTTON_OK_EVENT_CHANGE = "BUTTON_OK_EVENT_CHANGE"; BI.TimePopup.BUTTON_OK_EVENT_CHANGE = "BUTTON_OK_EVENT_CHANGE";
@ -79079,6 +79077,9 @@ BI.shortcut("bi.single_tree_trigger", BI.SingleTreeTrigger);!(function () {
items: [{ items: [{
el: { el: {
type: "bi.label", type: "bi.label",
title: function () {
return self.text.getText();
},
textAlign: "left", textAlign: "left",
height: o.height, height: o.height,
width: o.width, width: o.width,

19
dist/2.0/fineui.js vendored

@ -79291,15 +79291,9 @@ BI.shortcut("bi.single_tree_trigger", BI.SingleTreeTrigger);!(function () {
}; };
}, },
setValue: function (v) { setValue: function (value) {
var value = v; if (this._checkValueValid(value)) {
if (BI.isNull(value)) { this.timeSelect.setValue();
var date = BI.getDate();
this.timeSelect.setValue({
hour: date.getHours(),
minute: date.getMinutes(),
second: date.getSeconds()
});
} else { } else {
this.timeSelect.setValue({ this.timeSelect.setValue({
hour: value.hour, hour: value.hour,
@ -79311,6 +79305,10 @@ BI.shortcut("bi.single_tree_trigger", BI.SingleTreeTrigger);!(function () {
getValue: function () { getValue: function () {
return this.timeSelect.getValue(); return this.timeSelect.getValue();
},
_checkValueValid: function (value) {
return BI.isNull(value) || BI.isEmptyObject(value) || BI.isEmptyString(value);
} }
}); });
BI.TimePopup.BUTTON_OK_EVENT_CHANGE = "BUTTON_OK_EVENT_CHANGE"; BI.TimePopup.BUTTON_OK_EVENT_CHANGE = "BUTTON_OK_EVENT_CHANGE";
@ -79483,6 +79481,9 @@ BI.shortcut("bi.single_tree_trigger", BI.SingleTreeTrigger);!(function () {
items: [{ items: [{
el: { el: {
type: "bi.label", type: "bi.label",
title: function () {
return self.text.getText();
},
textAlign: "left", textAlign: "left",
height: o.height, height: o.height,
width: o.width, width: o.width,

19
dist/bundle.ie.js vendored

@ -78887,15 +78887,9 @@ BI.shortcut("bi.single_tree_trigger", BI.SingleTreeTrigger);!(function () {
}; };
}, },
setValue: function (v) { setValue: function (value) {
var value = v; if (this._checkValueValid(value)) {
if (BI.isNull(value)) { this.timeSelect.setValue();
var date = BI.getDate();
this.timeSelect.setValue({
hour: date.getHours(),
minute: date.getMinutes(),
second: date.getSeconds()
});
} else { } else {
this.timeSelect.setValue({ this.timeSelect.setValue({
hour: value.hour, hour: value.hour,
@ -78907,6 +78901,10 @@ BI.shortcut("bi.single_tree_trigger", BI.SingleTreeTrigger);!(function () {
getValue: function () { getValue: function () {
return this.timeSelect.getValue(); return this.timeSelect.getValue();
},
_checkValueValid: function (value) {
return BI.isNull(value) || BI.isEmptyObject(value) || BI.isEmptyString(value);
} }
}); });
BI.TimePopup.BUTTON_OK_EVENT_CHANGE = "BUTTON_OK_EVENT_CHANGE"; BI.TimePopup.BUTTON_OK_EVENT_CHANGE = "BUTTON_OK_EVENT_CHANGE";
@ -79079,6 +79077,9 @@ BI.shortcut("bi.single_tree_trigger", BI.SingleTreeTrigger);!(function () {
items: [{ items: [{
el: { el: {
type: "bi.label", type: "bi.label",
title: function () {
return self.text.getText();
},
textAlign: "left", textAlign: "left",
height: o.height, height: o.height,
width: o.width, width: o.width,

19
dist/bundle.js vendored

@ -79291,15 +79291,9 @@ BI.shortcut("bi.single_tree_trigger", BI.SingleTreeTrigger);!(function () {
}; };
}, },
setValue: function (v) { setValue: function (value) {
var value = v; if (this._checkValueValid(value)) {
if (BI.isNull(value)) { this.timeSelect.setValue();
var date = BI.getDate();
this.timeSelect.setValue({
hour: date.getHours(),
minute: date.getMinutes(),
second: date.getSeconds()
});
} else { } else {
this.timeSelect.setValue({ this.timeSelect.setValue({
hour: value.hour, hour: value.hour,
@ -79311,6 +79305,10 @@ BI.shortcut("bi.single_tree_trigger", BI.SingleTreeTrigger);!(function () {
getValue: function () { getValue: function () {
return this.timeSelect.getValue(); return this.timeSelect.getValue();
},
_checkValueValid: function (value) {
return BI.isNull(value) || BI.isEmptyObject(value) || BI.isEmptyString(value);
} }
}); });
BI.TimePopup.BUTTON_OK_EVENT_CHANGE = "BUTTON_OK_EVENT_CHANGE"; BI.TimePopup.BUTTON_OK_EVENT_CHANGE = "BUTTON_OK_EVENT_CHANGE";
@ -79483,6 +79481,9 @@ BI.shortcut("bi.single_tree_trigger", BI.SingleTreeTrigger);!(function () {
items: [{ items: [{
el: { el: {
type: "bi.label", type: "bi.label",
title: function () {
return self.text.getText();
},
textAlign: "left", textAlign: "left",
height: o.height, height: o.height,
width: o.width, width: o.width,

19
dist/fineui.ie.js vendored

@ -79132,15 +79132,9 @@ BI.shortcut("bi.single_tree_trigger", BI.SingleTreeTrigger);!(function () {
}; };
}, },
setValue: function (v) { setValue: function (value) {
var value = v; if (this._checkValueValid(value)) {
if (BI.isNull(value)) { this.timeSelect.setValue();
var date = BI.getDate();
this.timeSelect.setValue({
hour: date.getHours(),
minute: date.getMinutes(),
second: date.getSeconds()
});
} else { } else {
this.timeSelect.setValue({ this.timeSelect.setValue({
hour: value.hour, hour: value.hour,
@ -79152,6 +79146,10 @@ BI.shortcut("bi.single_tree_trigger", BI.SingleTreeTrigger);!(function () {
getValue: function () { getValue: function () {
return this.timeSelect.getValue(); return this.timeSelect.getValue();
},
_checkValueValid: function (value) {
return BI.isNull(value) || BI.isEmptyObject(value) || BI.isEmptyString(value);
} }
}); });
BI.TimePopup.BUTTON_OK_EVENT_CHANGE = "BUTTON_OK_EVENT_CHANGE"; BI.TimePopup.BUTTON_OK_EVENT_CHANGE = "BUTTON_OK_EVENT_CHANGE";
@ -79324,6 +79322,9 @@ BI.shortcut("bi.single_tree_trigger", BI.SingleTreeTrigger);!(function () {
items: [{ items: [{
el: { el: {
type: "bi.label", type: "bi.label",
title: function () {
return self.text.getText();
},
textAlign: "left", textAlign: "left",
height: o.height, height: o.height,
width: o.width, width: o.width,

19
dist/fineui.js vendored

@ -79536,15 +79536,9 @@ BI.shortcut("bi.single_tree_trigger", BI.SingleTreeTrigger);!(function () {
}; };
}, },
setValue: function (v) { setValue: function (value) {
var value = v; if (this._checkValueValid(value)) {
if (BI.isNull(value)) { this.timeSelect.setValue();
var date = BI.getDate();
this.timeSelect.setValue({
hour: date.getHours(),
minute: date.getMinutes(),
second: date.getSeconds()
});
} else { } else {
this.timeSelect.setValue({ this.timeSelect.setValue({
hour: value.hour, hour: value.hour,
@ -79556,6 +79550,10 @@ BI.shortcut("bi.single_tree_trigger", BI.SingleTreeTrigger);!(function () {
getValue: function () { getValue: function () {
return this.timeSelect.getValue(); return this.timeSelect.getValue();
},
_checkValueValid: function (value) {
return BI.isNull(value) || BI.isEmptyObject(value) || BI.isEmptyString(value);
} }
}); });
BI.TimePopup.BUTTON_OK_EVENT_CHANGE = "BUTTON_OK_EVENT_CHANGE"; BI.TimePopup.BUTTON_OK_EVENT_CHANGE = "BUTTON_OK_EVENT_CHANGE";
@ -79728,6 +79726,9 @@ BI.shortcut("bi.single_tree_trigger", BI.SingleTreeTrigger);!(function () {
items: [{ items: [{
el: { el: {
type: "bi.label", type: "bi.label",
title: function () {
return self.text.getText();
},
textAlign: "left", textAlign: "left",
height: o.height, height: o.height,
width: o.width, width: o.width,

19
dist/fineui_without_jquery_polyfill.js vendored

@ -62371,15 +62371,9 @@ BI.shortcut("bi.single_tree_trigger", BI.SingleTreeTrigger);!(function () {
}; };
}, },
setValue: function (v) { setValue: function (value) {
var value = v; if (this._checkValueValid(value)) {
if (BI.isNull(value)) { this.timeSelect.setValue();
var date = BI.getDate();
this.timeSelect.setValue({
hour: date.getHours(),
minute: date.getMinutes(),
second: date.getSeconds()
});
} else { } else {
this.timeSelect.setValue({ this.timeSelect.setValue({
hour: value.hour, hour: value.hour,
@ -62391,6 +62385,10 @@ BI.shortcut("bi.single_tree_trigger", BI.SingleTreeTrigger);!(function () {
getValue: function () { getValue: function () {
return this.timeSelect.getValue(); return this.timeSelect.getValue();
},
_checkValueValid: function (value) {
return BI.isNull(value) || BI.isEmptyObject(value) || BI.isEmptyString(value);
} }
}); });
BI.TimePopup.BUTTON_OK_EVENT_CHANGE = "BUTTON_OK_EVENT_CHANGE"; BI.TimePopup.BUTTON_OK_EVENT_CHANGE = "BUTTON_OK_EVENT_CHANGE";
@ -62563,6 +62561,9 @@ BI.shortcut("bi.single_tree_trigger", BI.SingleTreeTrigger);!(function () {
items: [{ items: [{
el: { el: {
type: "bi.label", type: "bi.label",
title: function () {
return self.text.getText();
},
textAlign: "left", textAlign: "left",
height: o.height, height: o.height,
width: o.width, width: o.width,

19
dist/widget.js vendored

@ -19445,15 +19445,9 @@ BI.shortcut("bi.single_tree_trigger", BI.SingleTreeTrigger);!(function () {
}; };
}, },
setValue: function (v) { setValue: function (value) {
var value = v; if (this._checkValueValid(value)) {
if (BI.isNull(value)) { this.timeSelect.setValue();
var date = BI.getDate();
this.timeSelect.setValue({
hour: date.getHours(),
minute: date.getMinutes(),
second: date.getSeconds()
});
} else { } else {
this.timeSelect.setValue({ this.timeSelect.setValue({
hour: value.hour, hour: value.hour,
@ -19465,6 +19459,10 @@ BI.shortcut("bi.single_tree_trigger", BI.SingleTreeTrigger);!(function () {
getValue: function () { getValue: function () {
return this.timeSelect.getValue(); return this.timeSelect.getValue();
},
_checkValueValid: function (value) {
return BI.isNull(value) || BI.isEmptyObject(value) || BI.isEmptyString(value);
} }
}); });
BI.TimePopup.BUTTON_OK_EVENT_CHANGE = "BUTTON_OK_EVENT_CHANGE"; BI.TimePopup.BUTTON_OK_EVENT_CHANGE = "BUTTON_OK_EVENT_CHANGE";
@ -19637,6 +19635,9 @@ BI.shortcut("bi.single_tree_trigger", BI.SingleTreeTrigger);!(function () {
items: [{ items: [{
el: { el: {
type: "bi.label", type: "bi.label",
title: function () {
return self.text.getText();
},
textAlign: "left", textAlign: "left",
height: o.height, height: o.height,
width: o.width, width: o.width,

16
src/widget/time/datetime.popup.js

@ -69,15 +69,9 @@
}; };
}, },
setValue: function (v) { setValue: function (value) {
var value = v; if (this._checkValueValid(value)) {
if (BI.isNull(value)) { this.timeSelect.setValue();
var date = BI.getDate();
this.timeSelect.setValue({
hour: date.getHours(),
minute: date.getMinutes(),
second: date.getSeconds()
});
} else { } else {
this.timeSelect.setValue({ this.timeSelect.setValue({
hour: value.hour, hour: value.hour,
@ -89,6 +83,10 @@
getValue: function () { getValue: function () {
return this.timeSelect.getValue(); return this.timeSelect.getValue();
},
_checkValueValid: function (value) {
return BI.isNull(value) || BI.isEmptyObject(value) || BI.isEmptyString(value);
} }
}); });
BI.TimePopup.BUTTON_OK_EVENT_CHANGE = "BUTTON_OK_EVENT_CHANGE"; BI.TimePopup.BUTTON_OK_EVENT_CHANGE = "BUTTON_OK_EVENT_CHANGE";

3
src/widget/time/time.trigger.js

@ -13,6 +13,9 @@
items: [{ items: [{
el: { el: {
type: "bi.label", type: "bi.label",
title: function () {
return self.text.getText();
},
textAlign: "left", textAlign: "left",
height: o.height, height: o.height,
width: o.width, width: o.width,

Loading…
Cancel
Save