From 7e511297349dee9e851ea04dd92b173467c45f28 Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Mon, 30 Nov 2020 16:19:54 +0800 Subject: [PATCH] =?UTF-8?q?BI-75257=20=E3=80=90=E4=BD=93=E9=AA=8C=E3=80=91?= =?UTF-8?q?text=E4=B8=BA=E7=A9=BA=E7=9A=84=E6=97=B6=E5=80=99=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E4=BA=86value=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- changelog.md | 1 + src/base/single/text.js | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/changelog.md b/changelog.md index d64fa93f2d..0725712a10 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,6 @@ # 更新日志 2.0(2020-11) +- 修复了文本标签text传递空字符串后显示value值的问题 - 限制了title的最大高度 - bi.textarea_editor添加setWatermark方法 - 生命周期可以通过属性传递来操作 diff --git a/src/base/single/text.js b/src/base/single/text.js index 823843bfcd..639599d91f 100644 --- a/src/base/single/text.js +++ b/src/base/single/text.js @@ -80,8 +80,6 @@ var text = this._getShowText(); if (BI.isKey(text)) { this.setText(text); - } else if (BI.isKey(o.value)) { - this.setText(o.value); } if (BI.isKey(o.keyword)) { this.doRedMark(o.keyword); @@ -105,7 +103,6 @@ _getShowText: function () { var o = this.options; var text = BI.isFunction(o.text) ? o.text() : o.text; - text = BI.isKey(text) ? text : o.value; if (!BI.isKey(text)) { return ""; }