diff --git a/changelog.md b/changelog.md index e7b76727c..44fc7a44f 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,6 @@ # 更新日志 2.0(2020-12) +- [视觉]editor水印间距统一与文本域水印不可选中 - 修复bi.file的url参数拼接问题 - 修复了colorChooser选择透明后, 打开更多选色面板, 直接点保存会选中自动的问题 - bi.file支持限制上传文件数 diff --git a/src/base/single/editor/editor.textarea.js b/src/base/single/editor/editor.textarea.js index 91274d7af..47ee9e186 100644 --- a/src/base/single/editor/editor.textarea.js +++ b/src/base/single/editor/editor.textarea.js @@ -84,7 +84,7 @@ BI.TextAreaEditor = BI.inherit(BI.Single, { if (!this.watermark) { this.watermark = BI.createWidget({ type: "bi.text_button", - cls: "bi-water-mark cursor-default textarea-watermark", + cls: "bi-water-mark cursor-default textarea-watermark bi-user-select-disable", textAlign: "left", whiteSpace: "normal", text: o.watermark, diff --git a/src/case/editor/editor.shelter.js b/src/case/editor/editor.shelter.js index 0962e74d0..562cbe3a4 100644 --- a/src/case/editor/editor.shelter.js +++ b/src/case/editor/editor.shelter.js @@ -52,7 +52,7 @@ BI.ShelterEditor = BI.inherit(BI.Widget, { tipType: o.tipType, textAlign: o.textAlign, height: o.height, - hgap: o.hgap + hgap: o.hgap + 2 }); BI.createWidget({ type: "bi.absolute", diff --git a/src/case/editor/editor.sign.js b/src/case/editor/editor.sign.js index e71efc3bf..35ed78e4b 100644 --- a/src/case/editor/editor.sign.js +++ b/src/case/editor/editor.sign.js @@ -52,7 +52,7 @@ BI.SignEditor = BI.inherit(BI.Widget, { tipType: o.tipType, textAlign: o.textAlign, height: o.height, - hgap: o.hgap, + hgap: o.hgap + 2, handler: function () { self._showInput(); self.editor.focus(); diff --git a/src/case/editor/editor.state.js b/src/case/editor/editor.state.js index 450a08f2f..1773c04f7 100644 --- a/src/case/editor/editor.state.js +++ b/src/case/editor/editor.state.js @@ -51,7 +51,7 @@ BI.StateEditor = BI.inherit(BI.Widget, { textAlign: "left", height: o.height, text: o.text, - hgap: o.hgap, + hgap: o.hgap + 2, handler: function () { self._showInput(); self.editor.focus(); diff --git a/src/case/editor/editor.state.simple.js b/src/case/editor/editor.state.simple.js index 10cb45057..6fab8d6f8 100644 --- a/src/case/editor/editor.state.simple.js +++ b/src/case/editor/editor.state.simple.js @@ -51,7 +51,7 @@ BI.SimpleStateEditor = BI.inherit(BI.Widget, { textAlign: "left", text: o.text, height: o.height, - hgap: o.hgap, + hgap: o.hgap + 2, handler: function () { self._showInput(); self.editor.focus();