diff --git a/changelog.md b/changelog.md index d64fa93f2..0725712a1 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 823843bfc..639599d91 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 ""; }