Browse Source

BI-125433 fix:修复texteditor

es6
Treecat 2 years ago
parent
commit
88284129bd
  1. 9
      packages/fineui/src/base/single/editor/editor.textarea.js

9
packages/fineui/src/base/single/editor/editor.textarea.js

@ -212,11 +212,12 @@ export class TextAreaEditor extends Single {
_setErrorVisible(b) { _setErrorVisible(b) {
const { adjustYOffset, adjustXOffset, offsetStyle } = this.options; const { adjustYOffset, adjustXOffset, offsetStyle } = this.options;
if (isFunction(this.options.errorText)) { let errorText = this.options.errorText;
this.options.errorText = this.options.errorText(trim(this.getValue())); if (isFunction(errorText)) {
errorText = errorText(trim(this.getValue()));
} }
if (!this.disabledError && isKey(this.options.errorText)) { if (!this.disabledError && isKey(errorText)) {
Bubbles[b ? "show" : "hide"](this.getName(), this.options.errorText, this, { Bubbles[b ? "show" : "hide"](this.getName(), errorText, this, {
adjustYOffset, adjustYOffset,
adjustXOffset, adjustXOffset,
offsetStyle, offsetStyle,

Loading…
Cancel
Save