Browse Source

Merge pull request #440 in FUI/fineui from ~WINDY/fui:master to master

* commit 'abd3d8fe1288e4607bd0a2d0df00919415c36d4d':
  BI-24081 input加回trim && font加padding-top
master
guy 7 years ago
parent
commit
8682da74bb
  1. 64
      dist/_fineui.min.js
  2. 30
      dist/base.js
  3. 56
      dist/bundle.css
  4. 30
      dist/bundle.js
  5. 2
      dist/bundle.min.css
  6. 64
      dist/bundle.min.js
  7. 56
      dist/fineui.css
  8. 30
      dist/fineui.js
  9. 2
      dist/fineui.min.css
  10. 64
      dist/fineui.min.js
  11. 56
      dist/resource.css
  12. 56
      public/css/font.css
  13. 4
      src/base/single/editor/editor.js
  14. 26
      src/base/single/input/input.js
  15. 56
      src/css/resource/font.css
  16. 4
      src/less/image.less
  17. 56
      ui/css/font.css

64
dist/_fineui.min.js vendored

File diff suppressed because one or more lines are too long

30
dist/base.js vendored

@ -18608,9 +18608,9 @@ BI.Editor = BI.inherit(BI.Single, {
getValue: function () {
if (!this.isValid()) {
return this.editor.getLastValidValue();
return BI.trim(this.editor.getLastValidValue());
}
return this.editor.getValue();
return BI.trim(this.editor.getValue());
},
isEditing: function () {
@ -19735,7 +19735,7 @@ BI.Input = BI.inherit(BI.Single, {
}
function blur () {
if (!self.isValid() && self.options.quitChecker.apply(self, [self.getValue()]) !== false) {
if (!self.isValid() && self.options.quitChecker.apply(self, [BI.trim(self.getValue())]) !== false) {
self.element.val(self._lastValidValue ? self._lastValidValue : "");
self._checkValidationOnValueChange();
self._defaultState();
@ -19765,11 +19765,11 @@ BI.Input = BI.inherit(BI.Single, {
},
onKeyDown: function (keyCode, ctrlKey) {
if (!this.isValid() || this._lastValidValue !== this.getValue()) {
if (!this.isValid() || BI.trim(this._lastValidValue) !== BI.trim(this.getValue())) {
this._checkValidationOnValueChange();
}
if (this.isValid() && this.getValue() !== "") {
if (this.getValue() !== this._lastValue && (!this._start || this._lastValue == null || this._lastValue === "")
if (this.isValid() && BI.trim(this.getValue()) !== "") {
if (BI.trim(this.getValue()) !== this._lastValue && (!this._start || this._lastValue == null || this._lastValue === "")
|| (this._pause === true && !/(\s|\u00A0)$/.test(this.getValue()))) {
this._start = true;
this._pause = false;
@ -19781,7 +19781,7 @@ BI.Input = BI.inherit(BI.Single, {
this._valueChange();
} else {
if (keyCode == BI.KeyCode.ENTER) {
if (this.isValid() || this.options.quitChecker.apply(this, [this.getValue()]) !== false) {
if (this.isValid() || this.options.quitChecker.apply(this, [BI.trim(this.getValue())]) !== false) {
this.blur();
this.fireEvent(BI.Input.EVENT_ENTER);
} else {
@ -19806,7 +19806,7 @@ BI.Input = BI.inherit(BI.Single, {
this.fireEvent(BI.Input.EVENT_PAUSE);
this._defaultState();
} else if ((keyCode === BI.KeyCode.BACKSPACE || keyCode === BI.KeyCode.DELETE) &&
this.getValue() === "" && (this._lastValue !== null && this._lastValue !== "")) {
BI.trim(this.getValue()) === "" && (this._lastValue !== null && BI.trim(this._lastValue) !== "")) {
this.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.STOPEDIT, this.getValue(), this);
this.fireEvent(BI.Input.EVENT_STOP);
this._valueChange();
@ -19826,10 +19826,10 @@ BI.Input = BI.inherit(BI.Single, {
},
_valueChange: function () {
if (this.isValid() && this.getValue() !== this._lastSubmitValue) {
if (this.isValid() && BI.trim(this.getValue()) !== this._lastSubmitValue) {
this.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.CHANGE, this.getValue(), this);
this.fireEvent(BI.Input.EVENT_CHANGE);
this._lastSubmitValue = this.getValue();
this._lastSubmitValue = BI.trim(this.getValue());
}
if (this.getValue() == "") {
this.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.EMPTY, this.getValue(), this);
@ -19842,10 +19842,10 @@ BI.Input = BI.inherit(BI.Single, {
var o = this.options;
var v = this.getValue();
this.setValid(
(o.allowBlank === true && v == "") ||
(BI.isNotEmptyString(v)
(o.allowBlank === true && BI.trim(v) == "") ||
(BI.isNotEmptyString(BI.trim(v))
&& (v === this._lastValidValue ||
o.validationChecker.apply(this, [v]) !== false))
o.validationChecker.apply(this, [BI.trim(v)]) !== false))
);
},
@ -19905,13 +19905,13 @@ BI.Input = BI.inherit(BI.Single, {
BI.Input.superclass._setValid.apply(this, arguments);
if (this.isValid()) {
this.element.removeClass("bi-input-error");
this.fireEvent(BI.Input.EVENT_VALID, this.getValue(), this);
this.fireEvent(BI.Input.EVENT_VALID, BI.trim(this.getValue()), this);
} else {
if (this._lastValidValue === this.getValue()) {
this._lastValidValue = null;
}
this.element.addClass("bi-input-error");
this.fireEvent(BI.Input.EVENT_ERROR, this.getValue(), this);
this.fireEvent(BI.Input.EVENT_ERROR, BI.trim(this.getValue()), this);
}
},

56
dist/bundle.css vendored

@ -5626,6 +5626,7 @@ textarea::-webkit-scrollbar-thumb:hover {
-moz-osx-font-smoothing: grayscale;
}
.close-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.close-font .b-font:before {
@ -5637,6 +5638,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.close-h-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.close-h-font .b-font:before {
@ -5653,6 +5655,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.close-ha-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.close-ha-font .b-font:before {
@ -5674,6 +5677,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.search-close-h-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.search-close-h-font .b-font:before {
@ -5690,6 +5694,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.pre-page-h-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.pre-page-h-font .b-font:before {
@ -5706,6 +5711,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.next-page-h-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.next-page-h-font .b-font:before {
@ -5722,6 +5728,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.search-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.search-font .b-font:before {
@ -5733,6 +5740,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.date-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.date-font .b-font:before {
@ -5744,6 +5752,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.date-change-h-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.date-change-h-font .b-font:before {
@ -5760,6 +5769,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.dot-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.dot-font .b-font:before {
@ -5771,6 +5781,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: #1a1a1a;
}
.dot-h-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.dot-h-font .b-font:before {
@ -5787,6 +5798,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: #1a1a1a;
}
.dot-ha-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.dot-ha-font .b-font:before {
@ -5808,6 +5820,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: #ffffff;
}
.dot-e-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.dot-e-font .b-font:before {
@ -5832,6 +5845,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: #ffffff;
}
.pull-right-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.pull-right-font .b-font:before {
@ -5843,6 +5857,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.pull-right-h-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.pull-right-h-font .b-font:before {
@ -5859,6 +5874,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.pull-right-ha-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.pull-right-ha-font .b-font:before {
@ -5880,6 +5896,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.pull-right-e-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.pull-right-e-font .b-font:before {
@ -5904,6 +5921,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.copy-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.copy-font .b-font:before {
@ -5915,6 +5933,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.copy-h-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.copy-h-font .b-font:before {
@ -5931,6 +5950,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: #1a1a1a;
}
.copy-ha-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.copy-ha-font .b-font:before {
@ -5952,6 +5972,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.copy-e-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.copy-e-font .b-font:before {
@ -5976,6 +5997,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.check-mark-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.check-mark-font .b-font:before {
@ -5987,6 +6009,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.check-mark-h-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.check-mark-h-font .b-font:before {
@ -6003,6 +6026,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.check-mark-ha-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.check-mark-ha-font .b-font:before {
@ -6024,6 +6048,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.check-mark-e-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.check-mark-e-font .b-font:before {
@ -6049,6 +6074,7 @@ textarea::-webkit-scrollbar-thumb:hover {
}
/** dashboard组件/控件 下拉列表图标字体 ~end~**/
.row-pre-page-h-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.row-pre-page-h-font .b-font:before {
@ -6065,6 +6091,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.row-next-page-h-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.row-next-page-h-font .b-font:before {
@ -6081,6 +6108,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.column-pre-page-h-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.column-pre-page-h-font .b-font:before {
@ -6097,6 +6125,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.column-next-page-h-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.column-next-page-h-font .b-font:before {
@ -6113,6 +6142,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.solid-triangle-top-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.solid-triangle-top-font .b-font:before {
@ -6129,6 +6159,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.solid-triangle-bottom-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.solid-triangle-bottom-font .b-font:before {
@ -6145,6 +6176,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.trigger-triangle-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.trigger-triangle-font .b-font:before {
@ -6166,6 +6198,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: #999999;
}
.pull-up-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.pull-up-font .b-font:before {
@ -6177,6 +6210,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.pull-down-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.pull-down-font .b-font:before {
@ -6188,6 +6222,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.pull-down-h-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.pull-down-h-font .b-font:before {
@ -6204,6 +6239,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.pull-down-ha-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.pull-down-ha-font .b-font:before {
@ -6225,6 +6261,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.check-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.check-font .b-font:before {
@ -6236,6 +6273,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: #3685f2;
}
.item-check-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.item-check-font .b-font:before {
@ -6257,6 +6295,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: #ffffff;
}
.primary-key-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.primary-key-font .b-font:before {
@ -6273,6 +6312,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.drag-tag-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.drag-tag-font .b-font:before {
@ -6284,6 +6324,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: #faaa39;
}
.less-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.less-font .b-font:before {
@ -6305,6 +6346,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.less-equal-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.less-equal-font .b-font:before {
@ -6326,6 +6368,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.text-bold-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.text-bold-font .b-font:before {
@ -6337,6 +6380,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.text-italic-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.text-italic-font .b-font:before {
@ -6348,6 +6392,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.text-underline-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.text-underline-font .b-font:before {
@ -6359,6 +6404,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.text-color-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.text-color-font .b-font:before {
@ -6370,6 +6416,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.text-background-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.text-background-font .b-font:before {
@ -6381,6 +6428,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.text-color-underline-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.text-color-underline-font .b-font:before {
@ -6392,6 +6440,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.text-align-left-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.text-align-left-font .b-font:before {
@ -6403,6 +6452,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.text-align-center-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.text-align-center-font .b-font:before {
@ -6414,6 +6464,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.text-align-right-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.text-align-right-font .b-font:before {
@ -6425,6 +6476,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.toast-error-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.toast-error-font .b-font:before {
@ -6436,6 +6488,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.toast-success-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.toast-success-font .b-font:before {
@ -6447,6 +6500,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.toast-warning-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.toast-warning-font .b-font:before {
@ -6458,6 +6512,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.toast-message-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.toast-message-font .b-font:before {
@ -6469,6 +6524,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.text-add-tip-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.text-add-tip-font .b-font:before {

30
dist/bundle.js vendored

@ -54374,9 +54374,9 @@ BI.Editor = BI.inherit(BI.Single, {
getValue: function () {
if (!this.isValid()) {
return this.editor.getLastValidValue();
return BI.trim(this.editor.getLastValidValue());
}
return this.editor.getValue();
return BI.trim(this.editor.getValue());
},
isEditing: function () {
@ -55501,7 +55501,7 @@ BI.Input = BI.inherit(BI.Single, {
}
function blur () {
if (!self.isValid() && self.options.quitChecker.apply(self, [self.getValue()]) !== false) {
if (!self.isValid() && self.options.quitChecker.apply(self, [BI.trim(self.getValue())]) !== false) {
self.element.val(self._lastValidValue ? self._lastValidValue : "");
self._checkValidationOnValueChange();
self._defaultState();
@ -55531,11 +55531,11 @@ BI.Input = BI.inherit(BI.Single, {
},
onKeyDown: function (keyCode, ctrlKey) {
if (!this.isValid() || this._lastValidValue !== this.getValue()) {
if (!this.isValid() || BI.trim(this._lastValidValue) !== BI.trim(this.getValue())) {
this._checkValidationOnValueChange();
}
if (this.isValid() && this.getValue() !== "") {
if (this.getValue() !== this._lastValue && (!this._start || this._lastValue == null || this._lastValue === "")
if (this.isValid() && BI.trim(this.getValue()) !== "") {
if (BI.trim(this.getValue()) !== this._lastValue && (!this._start || this._lastValue == null || this._lastValue === "")
|| (this._pause === true && !/(\s|\u00A0)$/.test(this.getValue()))) {
this._start = true;
this._pause = false;
@ -55547,7 +55547,7 @@ BI.Input = BI.inherit(BI.Single, {
this._valueChange();
} else {
if (keyCode == BI.KeyCode.ENTER) {
if (this.isValid() || this.options.quitChecker.apply(this, [this.getValue()]) !== false) {
if (this.isValid() || this.options.quitChecker.apply(this, [BI.trim(this.getValue())]) !== false) {
this.blur();
this.fireEvent(BI.Input.EVENT_ENTER);
} else {
@ -55572,7 +55572,7 @@ BI.Input = BI.inherit(BI.Single, {
this.fireEvent(BI.Input.EVENT_PAUSE);
this._defaultState();
} else if ((keyCode === BI.KeyCode.BACKSPACE || keyCode === BI.KeyCode.DELETE) &&
this.getValue() === "" && (this._lastValue !== null && this._lastValue !== "")) {
BI.trim(this.getValue()) === "" && (this._lastValue !== null && BI.trim(this._lastValue) !== "")) {
this.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.STOPEDIT, this.getValue(), this);
this.fireEvent(BI.Input.EVENT_STOP);
this._valueChange();
@ -55592,10 +55592,10 @@ BI.Input = BI.inherit(BI.Single, {
},
_valueChange: function () {
if (this.isValid() && this.getValue() !== this._lastSubmitValue) {
if (this.isValid() && BI.trim(this.getValue()) !== this._lastSubmitValue) {
this.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.CHANGE, this.getValue(), this);
this.fireEvent(BI.Input.EVENT_CHANGE);
this._lastSubmitValue = this.getValue();
this._lastSubmitValue = BI.trim(this.getValue());
}
if (this.getValue() == "") {
this.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.EMPTY, this.getValue(), this);
@ -55608,10 +55608,10 @@ BI.Input = BI.inherit(BI.Single, {
var o = this.options;
var v = this.getValue();
this.setValid(
(o.allowBlank === true && v == "") ||
(BI.isNotEmptyString(v)
(o.allowBlank === true && BI.trim(v) == "") ||
(BI.isNotEmptyString(BI.trim(v))
&& (v === this._lastValidValue ||
o.validationChecker.apply(this, [v]) !== false))
o.validationChecker.apply(this, [BI.trim(v)]) !== false))
);
},
@ -55671,13 +55671,13 @@ BI.Input = BI.inherit(BI.Single, {
BI.Input.superclass._setValid.apply(this, arguments);
if (this.isValid()) {
this.element.removeClass("bi-input-error");
this.fireEvent(BI.Input.EVENT_VALID, this.getValue(), this);
this.fireEvent(BI.Input.EVENT_VALID, BI.trim(this.getValue()), this);
} else {
if (this._lastValidValue === this.getValue()) {
this._lastValidValue = null;
}
this.element.addClass("bi-input-error");
this.fireEvent(BI.Input.EVENT_ERROR, this.getValue(), this);
this.fireEvent(BI.Input.EVENT_ERROR, BI.trim(this.getValue()), this);
}
},

2
dist/bundle.min.css vendored

File diff suppressed because one or more lines are too long

64
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

56
dist/fineui.css vendored

@ -5626,6 +5626,7 @@ textarea::-webkit-scrollbar-thumb:hover {
-moz-osx-font-smoothing: grayscale;
}
.close-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.close-font .b-font:before {
@ -5637,6 +5638,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.close-h-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.close-h-font .b-font:before {
@ -5653,6 +5655,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.close-ha-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.close-ha-font .b-font:before {
@ -5674,6 +5677,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.search-close-h-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.search-close-h-font .b-font:before {
@ -5690,6 +5694,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.pre-page-h-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.pre-page-h-font .b-font:before {
@ -5706,6 +5711,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.next-page-h-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.next-page-h-font .b-font:before {
@ -5722,6 +5728,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.search-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.search-font .b-font:before {
@ -5733,6 +5740,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.date-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.date-font .b-font:before {
@ -5744,6 +5752,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.date-change-h-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.date-change-h-font .b-font:before {
@ -5760,6 +5769,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.dot-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.dot-font .b-font:before {
@ -5771,6 +5781,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: #1a1a1a;
}
.dot-h-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.dot-h-font .b-font:before {
@ -5787,6 +5798,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: #1a1a1a;
}
.dot-ha-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.dot-ha-font .b-font:before {
@ -5808,6 +5820,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: #ffffff;
}
.dot-e-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.dot-e-font .b-font:before {
@ -5832,6 +5845,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: #ffffff;
}
.pull-right-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.pull-right-font .b-font:before {
@ -5843,6 +5857,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.pull-right-h-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.pull-right-h-font .b-font:before {
@ -5859,6 +5874,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.pull-right-ha-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.pull-right-ha-font .b-font:before {
@ -5880,6 +5896,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.pull-right-e-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.pull-right-e-font .b-font:before {
@ -5904,6 +5921,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.copy-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.copy-font .b-font:before {
@ -5915,6 +5933,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.copy-h-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.copy-h-font .b-font:before {
@ -5931,6 +5950,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: #1a1a1a;
}
.copy-ha-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.copy-ha-font .b-font:before {
@ -5952,6 +5972,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.copy-e-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.copy-e-font .b-font:before {
@ -5976,6 +5997,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.check-mark-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.check-mark-font .b-font:before {
@ -5987,6 +6009,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.check-mark-h-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.check-mark-h-font .b-font:before {
@ -6003,6 +6026,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.check-mark-ha-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.check-mark-ha-font .b-font:before {
@ -6024,6 +6048,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.check-mark-e-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.check-mark-e-font .b-font:before {
@ -6049,6 +6074,7 @@ textarea::-webkit-scrollbar-thumb:hover {
}
/** dashboard组件/控件 下拉列表图标字体 ~end~**/
.row-pre-page-h-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.row-pre-page-h-font .b-font:before {
@ -6065,6 +6091,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.row-next-page-h-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.row-next-page-h-font .b-font:before {
@ -6081,6 +6108,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.column-pre-page-h-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.column-pre-page-h-font .b-font:before {
@ -6097,6 +6125,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.column-next-page-h-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.column-next-page-h-font .b-font:before {
@ -6113,6 +6142,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.solid-triangle-top-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.solid-triangle-top-font .b-font:before {
@ -6129,6 +6159,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.solid-triangle-bottom-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.solid-triangle-bottom-font .b-font:before {
@ -6145,6 +6176,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.trigger-triangle-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.trigger-triangle-font .b-font:before {
@ -6166,6 +6198,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: #999999;
}
.pull-up-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.pull-up-font .b-font:before {
@ -6177,6 +6210,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.pull-down-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.pull-down-font .b-font:before {
@ -6188,6 +6222,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.pull-down-h-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.pull-down-h-font .b-font:before {
@ -6204,6 +6239,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.pull-down-ha-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.pull-down-ha-font .b-font:before {
@ -6225,6 +6261,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.check-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.check-font .b-font:before {
@ -6236,6 +6273,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: #3685f2;
}
.item-check-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.item-check-font .b-font:before {
@ -6257,6 +6295,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: #ffffff;
}
.primary-key-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.primary-key-font .b-font:before {
@ -6273,6 +6312,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.drag-tag-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.drag-tag-font .b-font:before {
@ -6284,6 +6324,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: #faaa39;
}
.less-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.less-font .b-font:before {
@ -6305,6 +6346,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.less-equal-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.less-equal-font .b-font:before {
@ -6326,6 +6368,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.text-bold-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.text-bold-font .b-font:before {
@ -6337,6 +6380,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.text-italic-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.text-italic-font .b-font:before {
@ -6348,6 +6392,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.text-underline-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.text-underline-font .b-font:before {
@ -6359,6 +6404,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.text-color-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.text-color-font .b-font:before {
@ -6370,6 +6416,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.text-background-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.text-background-font .b-font:before {
@ -6381,6 +6428,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.text-color-underline-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.text-color-underline-font .b-font:before {
@ -6392,6 +6440,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.text-align-left-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.text-align-left-font .b-font:before {
@ -6403,6 +6452,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.text-align-center-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.text-align-center-font .b-font:before {
@ -6414,6 +6464,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.text-align-right-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.text-align-right-font .b-font:before {
@ -6425,6 +6476,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.toast-error-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.toast-error-font .b-font:before {
@ -6436,6 +6488,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.toast-success-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.toast-success-font .b-font:before {
@ -6447,6 +6500,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.toast-warning-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.toast-warning-font .b-font:before {
@ -6458,6 +6512,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.toast-message-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.toast-message-font .b-font:before {
@ -6469,6 +6524,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.text-add-tip-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.text-add-tip-font .b-font:before {

30
dist/fineui.js vendored

@ -54617,9 +54617,9 @@ BI.Editor = BI.inherit(BI.Single, {
getValue: function () {
if (!this.isValid()) {
return this.editor.getLastValidValue();
return BI.trim(this.editor.getLastValidValue());
}
return this.editor.getValue();
return BI.trim(this.editor.getValue());
},
isEditing: function () {
@ -55744,7 +55744,7 @@ BI.Input = BI.inherit(BI.Single, {
}
function blur () {
if (!self.isValid() && self.options.quitChecker.apply(self, [self.getValue()]) !== false) {
if (!self.isValid() && self.options.quitChecker.apply(self, [BI.trim(self.getValue())]) !== false) {
self.element.val(self._lastValidValue ? self._lastValidValue : "");
self._checkValidationOnValueChange();
self._defaultState();
@ -55774,11 +55774,11 @@ BI.Input = BI.inherit(BI.Single, {
},
onKeyDown: function (keyCode, ctrlKey) {
if (!this.isValid() || this._lastValidValue !== this.getValue()) {
if (!this.isValid() || BI.trim(this._lastValidValue) !== BI.trim(this.getValue())) {
this._checkValidationOnValueChange();
}
if (this.isValid() && this.getValue() !== "") {
if (this.getValue() !== this._lastValue && (!this._start || this._lastValue == null || this._lastValue === "")
if (this.isValid() && BI.trim(this.getValue()) !== "") {
if (BI.trim(this.getValue()) !== this._lastValue && (!this._start || this._lastValue == null || this._lastValue === "")
|| (this._pause === true && !/(\s|\u00A0)$/.test(this.getValue()))) {
this._start = true;
this._pause = false;
@ -55790,7 +55790,7 @@ BI.Input = BI.inherit(BI.Single, {
this._valueChange();
} else {
if (keyCode == BI.KeyCode.ENTER) {
if (this.isValid() || this.options.quitChecker.apply(this, [this.getValue()]) !== false) {
if (this.isValid() || this.options.quitChecker.apply(this, [BI.trim(this.getValue())]) !== false) {
this.blur();
this.fireEvent(BI.Input.EVENT_ENTER);
} else {
@ -55815,7 +55815,7 @@ BI.Input = BI.inherit(BI.Single, {
this.fireEvent(BI.Input.EVENT_PAUSE);
this._defaultState();
} else if ((keyCode === BI.KeyCode.BACKSPACE || keyCode === BI.KeyCode.DELETE) &&
this.getValue() === "" && (this._lastValue !== null && this._lastValue !== "")) {
BI.trim(this.getValue()) === "" && (this._lastValue !== null && BI.trim(this._lastValue) !== "")) {
this.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.STOPEDIT, this.getValue(), this);
this.fireEvent(BI.Input.EVENT_STOP);
this._valueChange();
@ -55835,10 +55835,10 @@ BI.Input = BI.inherit(BI.Single, {
},
_valueChange: function () {
if (this.isValid() && this.getValue() !== this._lastSubmitValue) {
if (this.isValid() && BI.trim(this.getValue()) !== this._lastSubmitValue) {
this.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.CHANGE, this.getValue(), this);
this.fireEvent(BI.Input.EVENT_CHANGE);
this._lastSubmitValue = this.getValue();
this._lastSubmitValue = BI.trim(this.getValue());
}
if (this.getValue() == "") {
this.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.EMPTY, this.getValue(), this);
@ -55851,10 +55851,10 @@ BI.Input = BI.inherit(BI.Single, {
var o = this.options;
var v = this.getValue();
this.setValid(
(o.allowBlank === true && v == "") ||
(BI.isNotEmptyString(v)
(o.allowBlank === true && BI.trim(v) == "") ||
(BI.isNotEmptyString(BI.trim(v))
&& (v === this._lastValidValue ||
o.validationChecker.apply(this, [v]) !== false))
o.validationChecker.apply(this, [BI.trim(v)]) !== false))
);
},
@ -55914,13 +55914,13 @@ BI.Input = BI.inherit(BI.Single, {
BI.Input.superclass._setValid.apply(this, arguments);
if (this.isValid()) {
this.element.removeClass("bi-input-error");
this.fireEvent(BI.Input.EVENT_VALID, this.getValue(), this);
this.fireEvent(BI.Input.EVENT_VALID, BI.trim(this.getValue()), this);
} else {
if (this._lastValidValue === this.getValue()) {
this._lastValidValue = null;
}
this.element.addClass("bi-input-error");
this.fireEvent(BI.Input.EVENT_ERROR, this.getValue(), this);
this.fireEvent(BI.Input.EVENT_ERROR, BI.trim(this.getValue()), this);
}
},

2
dist/fineui.min.css vendored

File diff suppressed because one or more lines are too long

64
dist/fineui.min.js vendored

File diff suppressed because one or more lines are too long

56
dist/resource.css vendored

@ -333,6 +333,7 @@ textarea::-webkit-scrollbar-thumb:hover {
-moz-osx-font-smoothing: grayscale;
}
.close-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.close-font .b-font:before {
@ -344,6 +345,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.close-h-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.close-h-font .b-font:before {
@ -360,6 +362,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.close-ha-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.close-ha-font .b-font:before {
@ -381,6 +384,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.search-close-h-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.search-close-h-font .b-font:before {
@ -397,6 +401,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.pre-page-h-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.pre-page-h-font .b-font:before {
@ -413,6 +418,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.next-page-h-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.next-page-h-font .b-font:before {
@ -429,6 +435,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.search-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.search-font .b-font:before {
@ -440,6 +447,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.date-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.date-font .b-font:before {
@ -451,6 +459,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.date-change-h-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.date-change-h-font .b-font:before {
@ -467,6 +476,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.dot-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.dot-font .b-font:before {
@ -478,6 +488,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: #1a1a1a;
}
.dot-h-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.dot-h-font .b-font:before {
@ -494,6 +505,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: #1a1a1a;
}
.dot-ha-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.dot-ha-font .b-font:before {
@ -515,6 +527,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: #ffffff;
}
.dot-e-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.dot-e-font .b-font:before {
@ -539,6 +552,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: #ffffff;
}
.pull-right-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.pull-right-font .b-font:before {
@ -550,6 +564,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.pull-right-h-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.pull-right-h-font .b-font:before {
@ -566,6 +581,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.pull-right-ha-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.pull-right-ha-font .b-font:before {
@ -587,6 +603,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.pull-right-e-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.pull-right-e-font .b-font:before {
@ -611,6 +628,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.copy-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.copy-font .b-font:before {
@ -622,6 +640,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.copy-h-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.copy-h-font .b-font:before {
@ -638,6 +657,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: #1a1a1a;
}
.copy-ha-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.copy-ha-font .b-font:before {
@ -659,6 +679,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.copy-e-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.copy-e-font .b-font:before {
@ -683,6 +704,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.check-mark-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.check-mark-font .b-font:before {
@ -694,6 +716,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.check-mark-h-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.check-mark-h-font .b-font:before {
@ -710,6 +733,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.check-mark-ha-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.check-mark-ha-font .b-font:before {
@ -731,6 +755,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.check-mark-e-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.check-mark-e-font .b-font:before {
@ -756,6 +781,7 @@ textarea::-webkit-scrollbar-thumb:hover {
}
/** dashboard组件/控件 下拉列表图标字体 ~end~**/
.row-pre-page-h-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.row-pre-page-h-font .b-font:before {
@ -772,6 +798,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.row-next-page-h-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.row-next-page-h-font .b-font:before {
@ -788,6 +815,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.column-pre-page-h-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.column-pre-page-h-font .b-font:before {
@ -804,6 +832,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.column-next-page-h-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.column-next-page-h-font .b-font:before {
@ -820,6 +849,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.solid-triangle-top-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.solid-triangle-top-font .b-font:before {
@ -836,6 +866,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.solid-triangle-bottom-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.solid-triangle-bottom-font .b-font:before {
@ -852,6 +883,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.trigger-triangle-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.trigger-triangle-font .b-font:before {
@ -873,6 +905,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: #999999;
}
.pull-up-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.pull-up-font .b-font:before {
@ -884,6 +917,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.pull-down-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.pull-down-font .b-font:before {
@ -895,6 +929,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.pull-down-h-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.pull-down-h-font .b-font:before {
@ -911,6 +946,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.pull-down-ha-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.pull-down-ha-font .b-font:before {
@ -932,6 +968,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.check-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.check-font .b-font:before {
@ -943,6 +980,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: #3685f2;
}
.item-check-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.item-check-font .b-font:before {
@ -964,6 +1002,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: #ffffff;
}
.primary-key-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.primary-key-font .b-font:before {
@ -980,6 +1019,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.drag-tag-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.drag-tag-font .b-font:before {
@ -991,6 +1031,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: #faaa39;
}
.less-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.less-font .b-font:before {
@ -1012,6 +1053,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.less-equal-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.less-equal-font .b-font:before {
@ -1033,6 +1075,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.text-bold-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.text-bold-font .b-font:before {
@ -1044,6 +1087,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.text-italic-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.text-italic-font .b-font:before {
@ -1055,6 +1099,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.text-underline-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.text-underline-font .b-font:before {
@ -1066,6 +1111,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.text-color-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.text-color-font .b-font:before {
@ -1077,6 +1123,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.text-background-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.text-background-font .b-font:before {
@ -1088,6 +1135,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.text-color-underline-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.text-color-underline-font .b-font:before {
@ -1099,6 +1147,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.text-align-left-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.text-align-left-font .b-font:before {
@ -1110,6 +1159,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.text-align-center-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.text-align-center-font .b-font:before {
@ -1121,6 +1171,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.text-align-right-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.text-align-right-font .b-font:before {
@ -1132,6 +1183,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.toast-error-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.toast-error-font .b-font:before {
@ -1143,6 +1195,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.toast-success-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.toast-success-font .b-font:before {
@ -1154,6 +1207,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.toast-warning-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.toast-warning-font .b-font:before {
@ -1165,6 +1219,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.toast-message-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.toast-message-font .b-font:before {
@ -1176,6 +1231,7 @@ textarea::-webkit-scrollbar-thumb:hover {
color: inherit;
}
.text-add-tip-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.text-add-tip-font .b-font:before {

56
public/css/font.css

@ -12,6 +12,7 @@
-moz-osx-font-smoothing: grayscale;
}
.close-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.close-font .b-font:before {
@ -23,6 +24,7 @@
color: inherit;
}
.close-h-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.close-h-font .b-font:before {
@ -39,6 +41,7 @@
color: inherit;
}
.close-ha-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.close-ha-font .b-font:before {
@ -60,6 +63,7 @@
color: inherit;
}
.search-close-h-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.search-close-h-font .b-font:before {
@ -76,6 +80,7 @@
color: inherit;
}
.pre-page-h-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.pre-page-h-font .b-font:before {
@ -92,6 +97,7 @@
color: inherit;
}
.next-page-h-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.next-page-h-font .b-font:before {
@ -108,6 +114,7 @@
color: inherit;
}
.search-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.search-font .b-font:before {
@ -119,6 +126,7 @@
color: inherit;
}
.date-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.date-font .b-font:before {
@ -130,6 +138,7 @@
color: inherit;
}
.date-change-h-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.date-change-h-font .b-font:before {
@ -146,6 +155,7 @@
color: inherit;
}
.dot-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.dot-font .b-font:before {
@ -157,6 +167,7 @@
color: #1a1a1a;
}
.dot-h-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.dot-h-font .b-font:before {
@ -173,6 +184,7 @@
color: #1a1a1a;
}
.dot-ha-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.dot-ha-font .b-font:before {
@ -194,6 +206,7 @@
color: #ffffff;
}
.dot-e-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.dot-e-font .b-font:before {
@ -218,6 +231,7 @@
color: #ffffff;
}
.pull-right-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.pull-right-font .b-font:before {
@ -229,6 +243,7 @@
color: inherit;
}
.pull-right-h-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.pull-right-h-font .b-font:before {
@ -245,6 +260,7 @@
color: inherit;
}
.pull-right-ha-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.pull-right-ha-font .b-font:before {
@ -266,6 +282,7 @@
color: inherit;
}
.pull-right-e-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.pull-right-e-font .b-font:before {
@ -290,6 +307,7 @@
color: inherit;
}
.copy-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.copy-font .b-font:before {
@ -301,6 +319,7 @@
color: inherit;
}
.copy-h-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.copy-h-font .b-font:before {
@ -317,6 +336,7 @@
color: #1a1a1a;
}
.copy-ha-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.copy-ha-font .b-font:before {
@ -338,6 +358,7 @@
color: inherit;
}
.copy-e-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.copy-e-font .b-font:before {
@ -362,6 +383,7 @@
color: inherit;
}
.check-mark-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.check-mark-font .b-font:before {
@ -373,6 +395,7 @@
color: inherit;
}
.check-mark-h-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.check-mark-h-font .b-font:before {
@ -389,6 +412,7 @@
color: inherit;
}
.check-mark-ha-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.check-mark-ha-font .b-font:before {
@ -410,6 +434,7 @@
color: inherit;
}
.check-mark-e-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.check-mark-e-font .b-font:before {
@ -435,6 +460,7 @@
}
/** dashboard组件/控件 下拉列表图标字体 ~end~**/
.row-pre-page-h-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.row-pre-page-h-font .b-font:before {
@ -451,6 +477,7 @@
color: inherit;
}
.row-next-page-h-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.row-next-page-h-font .b-font:before {
@ -467,6 +494,7 @@
color: inherit;
}
.column-pre-page-h-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.column-pre-page-h-font .b-font:before {
@ -483,6 +511,7 @@
color: inherit;
}
.column-next-page-h-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.column-next-page-h-font .b-font:before {
@ -499,6 +528,7 @@
color: inherit;
}
.solid-triangle-top-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.solid-triangle-top-font .b-font:before {
@ -515,6 +545,7 @@
color: inherit;
}
.solid-triangle-bottom-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.solid-triangle-bottom-font .b-font:before {
@ -531,6 +562,7 @@
color: inherit;
}
.trigger-triangle-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.trigger-triangle-font .b-font:before {
@ -552,6 +584,7 @@
color: #999999;
}
.pull-up-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.pull-up-font .b-font:before {
@ -563,6 +596,7 @@
color: inherit;
}
.pull-down-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.pull-down-font .b-font:before {
@ -574,6 +608,7 @@
color: inherit;
}
.pull-down-h-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.pull-down-h-font .b-font:before {
@ -590,6 +625,7 @@
color: inherit;
}
.pull-down-ha-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.pull-down-ha-font .b-font:before {
@ -611,6 +647,7 @@
color: inherit;
}
.check-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.check-font .b-font:before {
@ -622,6 +659,7 @@
color: #3685f2;
}
.item-check-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.item-check-font .b-font:before {
@ -643,6 +681,7 @@
color: #ffffff;
}
.primary-key-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.primary-key-font .b-font:before {
@ -659,6 +698,7 @@
color: inherit;
}
.drag-tag-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.drag-tag-font .b-font:before {
@ -670,6 +710,7 @@
color: #faaa39;
}
.less-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.less-font .b-font:before {
@ -691,6 +732,7 @@
color: inherit;
}
.less-equal-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.less-equal-font .b-font:before {
@ -712,6 +754,7 @@
color: inherit;
}
.text-bold-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.text-bold-font .b-font:before {
@ -723,6 +766,7 @@
color: inherit;
}
.text-italic-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.text-italic-font .b-font:before {
@ -734,6 +778,7 @@
color: inherit;
}
.text-underline-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.text-underline-font .b-font:before {
@ -745,6 +790,7 @@
color: inherit;
}
.text-color-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.text-color-font .b-font:before {
@ -756,6 +802,7 @@
color: inherit;
}
.text-background-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.text-background-font .b-font:before {
@ -767,6 +814,7 @@
color: inherit;
}
.text-color-underline-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.text-color-underline-font .b-font:before {
@ -778,6 +826,7 @@
color: inherit;
}
.text-align-left-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.text-align-left-font .b-font:before {
@ -789,6 +838,7 @@
color: inherit;
}
.text-align-center-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.text-align-center-font .b-font:before {
@ -800,6 +850,7 @@
color: inherit;
}
.text-align-right-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.text-align-right-font .b-font:before {
@ -811,6 +862,7 @@
color: inherit;
}
.toast-error-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.toast-error-font .b-font:before {
@ -822,6 +874,7 @@
color: inherit;
}
.toast-success-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.toast-success-font .b-font:before {
@ -833,6 +886,7 @@
color: inherit;
}
.toast-warning-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.toast-warning-font .b-font:before {
@ -844,6 +898,7 @@
color: inherit;
}
.toast-message-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.toast-message-font .b-font:before {
@ -855,6 +910,7 @@
color: inherit;
}
.text-add-tip-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.text-add-tip-font .b-font:before {

4
src/base/single/editor/editor.js

@ -288,9 +288,9 @@ BI.Editor = BI.inherit(BI.Single, {
getValue: function () {
if (!this.isValid()) {
return this.editor.getLastValidValue();
return BI.trim(this.editor.getLastValidValue());
}
return this.editor.getValue();
return BI.trim(this.editor.getValue());
},
isEditing: function () {

26
src/base/single/input/input.js

@ -88,7 +88,7 @@ BI.Input = BI.inherit(BI.Single, {
}
function blur () {
if (!self.isValid() && self.options.quitChecker.apply(self, [self.getValue()]) !== false) {
if (!self.isValid() && self.options.quitChecker.apply(self, [BI.trim(self.getValue())]) !== false) {
self.element.val(self._lastValidValue ? self._lastValidValue : "");
self._checkValidationOnValueChange();
self._defaultState();
@ -118,11 +118,11 @@ BI.Input = BI.inherit(BI.Single, {
},
onKeyDown: function (keyCode, ctrlKey) {
if (!this.isValid() || this._lastValidValue !== this.getValue()) {
if (!this.isValid() || BI.trim(this._lastValidValue) !== BI.trim(this.getValue())) {
this._checkValidationOnValueChange();
}
if (this.isValid() && this.getValue() !== "") {
if (this.getValue() !== this._lastValue && (!this._start || this._lastValue == null || this._lastValue === "")
if (this.isValid() && BI.trim(this.getValue()) !== "") {
if (BI.trim(this.getValue()) !== this._lastValue && (!this._start || this._lastValue == null || this._lastValue === "")
|| (this._pause === true && !/(\s|\u00A0)$/.test(this.getValue()))) {
this._start = true;
this._pause = false;
@ -134,7 +134,7 @@ BI.Input = BI.inherit(BI.Single, {
this._valueChange();
} else {
if (keyCode == BI.KeyCode.ENTER) {
if (this.isValid() || this.options.quitChecker.apply(this, [this.getValue()]) !== false) {
if (this.isValid() || this.options.quitChecker.apply(this, [BI.trim(this.getValue())]) !== false) {
this.blur();
this.fireEvent(BI.Input.EVENT_ENTER);
} else {
@ -159,7 +159,7 @@ BI.Input = BI.inherit(BI.Single, {
this.fireEvent(BI.Input.EVENT_PAUSE);
this._defaultState();
} else if ((keyCode === BI.KeyCode.BACKSPACE || keyCode === BI.KeyCode.DELETE) &&
this.getValue() === "" && (this._lastValue !== null && this._lastValue !== "")) {
BI.trim(this.getValue()) === "" && (this._lastValue !== null && BI.trim(this._lastValue) !== "")) {
this.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.STOPEDIT, this.getValue(), this);
this.fireEvent(BI.Input.EVENT_STOP);
this._valueChange();
@ -179,10 +179,10 @@ BI.Input = BI.inherit(BI.Single, {
},
_valueChange: function () {
if (this.isValid() && this.getValue() !== this._lastSubmitValue) {
if (this.isValid() && BI.trim(this.getValue()) !== this._lastSubmitValue) {
this.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.CHANGE, this.getValue(), this);
this.fireEvent(BI.Input.EVENT_CHANGE);
this._lastSubmitValue = this.getValue();
this._lastSubmitValue = BI.trim(this.getValue());
}
if (this.getValue() == "") {
this.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.EMPTY, this.getValue(), this);
@ -195,10 +195,10 @@ BI.Input = BI.inherit(BI.Single, {
var o = this.options;
var v = this.getValue();
this.setValid(
(o.allowBlank === true && v == "") ||
(BI.isNotEmptyString(v)
(o.allowBlank === true && BI.trim(v) == "") ||
(BI.isNotEmptyString(BI.trim(v))
&& (v === this._lastValidValue ||
o.validationChecker.apply(this, [v]) !== false))
o.validationChecker.apply(this, [BI.trim(v)]) !== false))
);
},
@ -258,13 +258,13 @@ BI.Input = BI.inherit(BI.Single, {
BI.Input.superclass._setValid.apply(this, arguments);
if (this.isValid()) {
this.element.removeClass("bi-input-error");
this.fireEvent(BI.Input.EVENT_VALID, this.getValue(), this);
this.fireEvent(BI.Input.EVENT_VALID, BI.trim(this.getValue()), this);
} else {
if (this._lastValidValue === this.getValue()) {
this._lastValidValue = null;
}
this.element.addClass("bi-input-error");
this.fireEvent(BI.Input.EVENT_ERROR, this.getValue(), this);
this.fireEvent(BI.Input.EVENT_ERROR, BI.trim(this.getValue()), this);
}
},

56
src/css/resource/font.css

@ -12,6 +12,7 @@
-moz-osx-font-smoothing: grayscale;
}
.close-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.close-font .b-font:before {
@ -23,6 +24,7 @@
color: inherit;
}
.close-h-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.close-h-font .b-font:before {
@ -39,6 +41,7 @@
color: inherit;
}
.close-ha-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.close-ha-font .b-font:before {
@ -60,6 +63,7 @@
color: inherit;
}
.search-close-h-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.search-close-h-font .b-font:before {
@ -76,6 +80,7 @@
color: inherit;
}
.pre-page-h-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.pre-page-h-font .b-font:before {
@ -92,6 +97,7 @@
color: inherit;
}
.next-page-h-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.next-page-h-font .b-font:before {
@ -108,6 +114,7 @@
color: inherit;
}
.search-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.search-font .b-font:before {
@ -119,6 +126,7 @@
color: inherit;
}
.date-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.date-font .b-font:before {
@ -130,6 +138,7 @@
color: inherit;
}
.date-change-h-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.date-change-h-font .b-font:before {
@ -146,6 +155,7 @@
color: inherit;
}
.dot-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.dot-font .b-font:before {
@ -157,6 +167,7 @@
color: #1a1a1a;
}
.dot-h-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.dot-h-font .b-font:before {
@ -173,6 +184,7 @@
color: #1a1a1a;
}
.dot-ha-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.dot-ha-font .b-font:before {
@ -194,6 +206,7 @@
color: #ffffff;
}
.dot-e-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.dot-e-font .b-font:before {
@ -218,6 +231,7 @@
color: #ffffff;
}
.pull-right-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.pull-right-font .b-font:before {
@ -229,6 +243,7 @@
color: inherit;
}
.pull-right-h-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.pull-right-h-font .b-font:before {
@ -245,6 +260,7 @@
color: inherit;
}
.pull-right-ha-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.pull-right-ha-font .b-font:before {
@ -266,6 +282,7 @@
color: inherit;
}
.pull-right-e-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.pull-right-e-font .b-font:before {
@ -290,6 +307,7 @@
color: inherit;
}
.copy-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.copy-font .b-font:before {
@ -301,6 +319,7 @@
color: inherit;
}
.copy-h-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.copy-h-font .b-font:before {
@ -317,6 +336,7 @@
color: #1a1a1a;
}
.copy-ha-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.copy-ha-font .b-font:before {
@ -338,6 +358,7 @@
color: inherit;
}
.copy-e-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.copy-e-font .b-font:before {
@ -362,6 +383,7 @@
color: inherit;
}
.check-mark-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.check-mark-font .b-font:before {
@ -373,6 +395,7 @@
color: inherit;
}
.check-mark-h-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.check-mark-h-font .b-font:before {
@ -389,6 +412,7 @@
color: inherit;
}
.check-mark-ha-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.check-mark-ha-font .b-font:before {
@ -410,6 +434,7 @@
color: inherit;
}
.check-mark-e-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.check-mark-e-font .b-font:before {
@ -435,6 +460,7 @@
}
/** dashboard组件/控件 下拉列表图标字体 ~end~**/
.row-pre-page-h-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.row-pre-page-h-font .b-font:before {
@ -451,6 +477,7 @@
color: inherit;
}
.row-next-page-h-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.row-next-page-h-font .b-font:before {
@ -467,6 +494,7 @@
color: inherit;
}
.column-pre-page-h-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.column-pre-page-h-font .b-font:before {
@ -483,6 +511,7 @@
color: inherit;
}
.column-next-page-h-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.column-next-page-h-font .b-font:before {
@ -499,6 +528,7 @@
color: inherit;
}
.solid-triangle-top-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.solid-triangle-top-font .b-font:before {
@ -515,6 +545,7 @@
color: inherit;
}
.solid-triangle-bottom-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.solid-triangle-bottom-font .b-font:before {
@ -531,6 +562,7 @@
color: inherit;
}
.trigger-triangle-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.trigger-triangle-font .b-font:before {
@ -552,6 +584,7 @@
color: #999999;
}
.pull-up-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.pull-up-font .b-font:before {
@ -563,6 +596,7 @@
color: inherit;
}
.pull-down-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.pull-down-font .b-font:before {
@ -574,6 +608,7 @@
color: inherit;
}
.pull-down-h-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.pull-down-h-font .b-font:before {
@ -590,6 +625,7 @@
color: inherit;
}
.pull-down-ha-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.pull-down-ha-font .b-font:before {
@ -611,6 +647,7 @@
color: inherit;
}
.check-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.check-font .b-font:before {
@ -622,6 +659,7 @@
color: #3685f2;
}
.item-check-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.item-check-font .b-font:before {
@ -643,6 +681,7 @@
color: #ffffff;
}
.primary-key-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.primary-key-font .b-font:before {
@ -659,6 +698,7 @@
color: inherit;
}
.drag-tag-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.drag-tag-font .b-font:before {
@ -670,6 +710,7 @@
color: #faaa39;
}
.less-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.less-font .b-font:before {
@ -691,6 +732,7 @@
color: inherit;
}
.less-equal-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.less-equal-font .b-font:before {
@ -712,6 +754,7 @@
color: inherit;
}
.text-bold-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.text-bold-font .b-font:before {
@ -723,6 +766,7 @@
color: inherit;
}
.text-italic-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.text-italic-font .b-font:before {
@ -734,6 +778,7 @@
color: inherit;
}
.text-underline-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.text-underline-font .b-font:before {
@ -745,6 +790,7 @@
color: inherit;
}
.text-color-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.text-color-font .b-font:before {
@ -756,6 +802,7 @@
color: inherit;
}
.text-background-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.text-background-font .b-font:before {
@ -767,6 +814,7 @@
color: inherit;
}
.text-color-underline-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.text-color-underline-font .b-font:before {
@ -778,6 +826,7 @@
color: inherit;
}
.text-align-left-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.text-align-left-font .b-font:before {
@ -789,6 +838,7 @@
color: inherit;
}
.text-align-center-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.text-align-center-font .b-font:before {
@ -800,6 +850,7 @@
color: inherit;
}
.text-align-right-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.text-align-right-font .b-font:before {
@ -811,6 +862,7 @@
color: inherit;
}
.toast-error-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.toast-error-font .b-font:before {
@ -822,6 +874,7 @@
color: inherit;
}
.toast-success-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.toast-success-font .b-font:before {
@ -833,6 +886,7 @@
color: inherit;
}
.toast-warning-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.toast-warning-font .b-font:before {
@ -844,6 +898,7 @@
color: inherit;
}
.toast-message-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.toast-message-font .b-font:before {
@ -855,6 +910,7 @@
color: inherit;
}
.text-add-tip-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.text-add-tip-font .b-font:before {

4
src/less/image.less

@ -319,6 +319,7 @@
@fc: "\@{content}";
.@{class} {
& .b-font {
padding-top: 0.5px;
*zoom: ~"expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '&#x@{content};')";
}
& .b-font:before {
@ -337,6 +338,7 @@
@fc: "\@{content}";
.@{class} {
& .b-font {
padding-top: 0.5px;
*zoom: ~"expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '&#x@{content};')";
}
& .b-font:before {
@ -360,6 +362,7 @@
@fc: "\@{content}";
.@{class} {
& .b-font {
padding-top: 0.5px;
*zoom: ~"expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '&#x@{content};')";
}
& .b-font:before {
@ -388,6 +391,7 @@
@fc: "\@{content}";
.@{class} {
& .b-font {
padding-top: 0.5px;
*zoom: ~"expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '&#x@{content};')";
}
& .b-font:before {

56
ui/css/font.css

@ -12,6 +12,7 @@
-moz-osx-font-smoothing: grayscale;
}
.close-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.close-font .b-font:before {
@ -23,6 +24,7 @@
color: inherit;
}
.close-h-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.close-h-font .b-font:before {
@ -39,6 +41,7 @@
color: inherit;
}
.close-ha-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.close-ha-font .b-font:before {
@ -60,6 +63,7 @@
color: inherit;
}
.search-close-h-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.search-close-h-font .b-font:before {
@ -76,6 +80,7 @@
color: inherit;
}
.pre-page-h-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.pre-page-h-font .b-font:before {
@ -92,6 +97,7 @@
color: inherit;
}
.next-page-h-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.next-page-h-font .b-font:before {
@ -108,6 +114,7 @@
color: inherit;
}
.search-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.search-font .b-font:before {
@ -119,6 +126,7 @@
color: inherit;
}
.date-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.date-font .b-font:before {
@ -130,6 +138,7 @@
color: inherit;
}
.date-change-h-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.date-change-h-font .b-font:before {
@ -146,6 +155,7 @@
color: inherit;
}
.dot-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.dot-font .b-font:before {
@ -157,6 +167,7 @@
color: #1a1a1a;
}
.dot-h-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.dot-h-font .b-font:before {
@ -173,6 +184,7 @@
color: #1a1a1a;
}
.dot-ha-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.dot-ha-font .b-font:before {
@ -194,6 +206,7 @@
color: #ffffff;
}
.dot-e-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.dot-e-font .b-font:before {
@ -218,6 +231,7 @@
color: #ffffff;
}
.pull-right-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.pull-right-font .b-font:before {
@ -229,6 +243,7 @@
color: inherit;
}
.pull-right-h-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.pull-right-h-font .b-font:before {
@ -245,6 +260,7 @@
color: inherit;
}
.pull-right-ha-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.pull-right-ha-font .b-font:before {
@ -266,6 +282,7 @@
color: inherit;
}
.pull-right-e-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.pull-right-e-font .b-font:before {
@ -290,6 +307,7 @@
color: inherit;
}
.copy-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.copy-font .b-font:before {
@ -301,6 +319,7 @@
color: inherit;
}
.copy-h-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.copy-h-font .b-font:before {
@ -317,6 +336,7 @@
color: #1a1a1a;
}
.copy-ha-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.copy-ha-font .b-font:before {
@ -338,6 +358,7 @@
color: inherit;
}
.copy-e-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.copy-e-font .b-font:before {
@ -362,6 +383,7 @@
color: inherit;
}
.check-mark-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.check-mark-font .b-font:before {
@ -373,6 +395,7 @@
color: inherit;
}
.check-mark-h-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.check-mark-h-font .b-font:before {
@ -389,6 +412,7 @@
color: inherit;
}
.check-mark-ha-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.check-mark-ha-font .b-font:before {
@ -410,6 +434,7 @@
color: inherit;
}
.check-mark-e-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.check-mark-e-font .b-font:before {
@ -435,6 +460,7 @@
}
/** dashboard组件/控件 下拉列表图标字体 ~end~**/
.row-pre-page-h-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.row-pre-page-h-font .b-font:before {
@ -451,6 +477,7 @@
color: inherit;
}
.row-next-page-h-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.row-next-page-h-font .b-font:before {
@ -467,6 +494,7 @@
color: inherit;
}
.column-pre-page-h-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.column-pre-page-h-font .b-font:before {
@ -483,6 +511,7 @@
color: inherit;
}
.column-next-page-h-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.column-next-page-h-font .b-font:before {
@ -499,6 +528,7 @@
color: inherit;
}
.solid-triangle-top-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.solid-triangle-top-font .b-font:before {
@ -515,6 +545,7 @@
color: inherit;
}
.solid-triangle-bottom-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.solid-triangle-bottom-font .b-font:before {
@ -531,6 +562,7 @@
color: inherit;
}
.trigger-triangle-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.trigger-triangle-font .b-font:before {
@ -552,6 +584,7 @@
color: #999999;
}
.pull-up-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.pull-up-font .b-font:before {
@ -563,6 +596,7 @@
color: inherit;
}
.pull-down-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.pull-down-font .b-font:before {
@ -574,6 +608,7 @@
color: inherit;
}
.pull-down-h-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.pull-down-h-font .b-font:before {
@ -590,6 +625,7 @@
color: inherit;
}
.pull-down-ha-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.pull-down-ha-font .b-font:before {
@ -611,6 +647,7 @@
color: inherit;
}
.check-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.check-font .b-font:before {
@ -622,6 +659,7 @@
color: #3685f2;
}
.item-check-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.item-check-font .b-font:before {
@ -643,6 +681,7 @@
color: #ffffff;
}
.primary-key-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.primary-key-font .b-font:before {
@ -659,6 +698,7 @@
color: inherit;
}
.drag-tag-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.drag-tag-font .b-font:before {
@ -670,6 +710,7 @@
color: #faaa39;
}
.less-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.less-font .b-font:before {
@ -691,6 +732,7 @@
color: inherit;
}
.less-equal-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.less-equal-font .b-font:before {
@ -712,6 +754,7 @@
color: inherit;
}
.text-bold-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.text-bold-font .b-font:before {
@ -723,6 +766,7 @@
color: inherit;
}
.text-italic-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.text-italic-font .b-font:before {
@ -734,6 +778,7 @@
color: inherit;
}
.text-underline-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.text-underline-font .b-font:before {
@ -745,6 +790,7 @@
color: inherit;
}
.text-color-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.text-color-font .b-font:before {
@ -756,6 +802,7 @@
color: inherit;
}
.text-background-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.text-background-font .b-font:before {
@ -767,6 +814,7 @@
color: inherit;
}
.text-color-underline-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.text-color-underline-font .b-font:before {
@ -778,6 +826,7 @@
color: inherit;
}
.text-align-left-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.text-align-left-font .b-font:before {
@ -789,6 +838,7 @@
color: inherit;
}
.text-align-center-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.text-align-center-font .b-font:before {
@ -800,6 +850,7 @@
color: inherit;
}
.text-align-right-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.text-align-right-font .b-font:before {
@ -811,6 +862,7 @@
color: inherit;
}
.toast-error-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.toast-error-font .b-font:before {
@ -822,6 +874,7 @@
color: inherit;
}
.toast-success-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.toast-success-font .b-font:before {
@ -833,6 +886,7 @@
color: inherit;
}
.toast-warning-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.toast-warning-font .b-font:before {
@ -844,6 +898,7 @@
color: inherit;
}
.toast-message-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.toast-message-font .b-font:before {
@ -855,6 +910,7 @@
color: inherit;
}
.text-add-tip-font .b-font {
padding-top: 0.5px;
*zoom: expression( this.runtimeStyle['zoom'] = '1',this.innerHTML = '');
}
.text-add-tip-font .b-font:before {

Loading…
Cancel
Save