Browse Source

BI-125433 fix:修复texteditor

es6
Treecat 1 year 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) {
const { adjustYOffset, adjustXOffset, offsetStyle } = this.options;
if (isFunction(this.options.errorText)) {
this.options.errorText = this.options.errorText(trim(this.getValue()));
let errorText = this.options.errorText;
if (isFunction(errorText)) {
errorText = errorText(trim(this.getValue()));
}
if (!this.disabledError && isKey(this.options.errorText)) {
Bubbles[b ? "show" : "hide"](this.getName(), this.options.errorText, this, {
if (!this.disabledError && isKey(errorText)) {
Bubbles[b ? "show" : "hide"](this.getName(), errorText, this, {
adjustYOffset,
adjustXOffset,
offsetStyle,

Loading…
Cancel
Save