From c9f21b2950aa2b6196d7ceb89944c4efddaf54ed Mon Sep 17 00:00:00 2001 From: treecat <2184452844@qq.com> Date: Sun, 3 Dec 2023 20:28:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0jira=20fix:bind?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/widget/singleslider/button/editor.sign.text.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/fineui/src/widget/singleslider/button/editor.sign.text.js b/packages/fineui/src/widget/singleslider/button/editor.sign.text.js index da7c44cb9..7c9608307 100644 --- a/packages/fineui/src/widget/singleslider/button/editor.sign.text.js +++ b/packages/fineui/src/widget/singleslider/button/editor.sign.text.js @@ -106,17 +106,18 @@ export class SignTextEditor extends Widget { _checkText() { const o = this.options; nextTick( - bind(() => { + () => { if (this.editor.getValue() === "") { this.text.setValue(o.watermark || ""); this.text.element.addClass("bi-water-mark"); } else { let v = this.editor.getValue(); v = isEmpty(v) || v === o.text ? o.text : v + o.text; + console.log(v) this.text.setValue(v); this.text.element.removeClass("bi-water-mark"); } - }, this) + } ); }