Browse Source

边框标红补充

es6
windy 3 years ago
parent
commit
8fc91a2675
  1. 2
      src/less/base/combo/combo.textvalue.icon.less
  2. 2
      src/less/base/combo/combo.textvalue.less
  3. 2
      src/widget/editor/editor.text.js

2
src/less/base/combo/combo.textvalue.icon.less

@ -7,7 +7,7 @@
color: @color-bi-text-error-hover-text-value-icon-combo;
}
}
&>.bi-border, &>.bi-border-bottom {
&.bi-border, &.bi-border-bottom {
border-color: @border-color-negative;
}
}

2
src/less/base/combo/combo.textvalue.less

@ -7,7 +7,7 @@
color: @color-bi-text-error-hover-text-value-combo;
}
}
&>.bi-border, &>.bi-border-bottom {
&.bi-border, &.bi-border-bottom {
border-color: @border-color-negative;
}
}

2
src/widget/editor/editor.text.js

@ -80,6 +80,7 @@ BI.TextEditor = BI.inherit(BI.Widget, {
this.editor.on(BI.Editor.EVENT_VALID, function () {
self.element.removeClass("error");
self.fireEvent(BI.TextEditor.EVENT_VALID);
});
this.editor.on(BI.Editor.EVENT_CONFIRM, function () {
@ -101,6 +102,7 @@ BI.TextEditor = BI.inherit(BI.Widget, {
self.fireEvent(BI.TextEditor.EVENT_STOP);
});
this.editor.on(BI.Editor.EVENT_ERROR, function () {
self.element.addClass("error");
self.fireEvent(BI.TextEditor.EVENT_ERROR, arguments);
});
this.editor.on(BI.Editor.EVENT_ENTER, function () {

Loading…
Cancel
Save