Browse Source

wartermark

es6
Young 7 years ago
parent
commit
19ce7b32d6
  1. 16
      bi/base.js
  2. 16
      docs/base.js
  3. 6
      src/base/formula/formulaeditor.js
  4. 10
      src/base/single/editor/editor.js

16
bi/base.js

@ -14351,15 +14351,15 @@ BI.FormulaEditor = BI.inherit(BI.Single, {
_checkWaterMark: function () {
var o = this.options;
if (!this.disabledWarterMark && BI.isEmptyString(this.editor.getValue()) && BI.isKey(o.watermark)) {
if (!this.disabledWaterMark && BI.isEmptyString(this.editor.getValue()) && BI.isKey(o.watermark)) {
this.watermark && this.watermark.visible();
} else {
this.watermark && this.watermark.invisible();
}
},
disableWarterMark: function () {
this.disabledWarterMark = true;
disableWaterMark: function () {
this.disabledWaterMark = true;
this._checkWaterMark();
},
@ -18111,7 +18111,7 @@ BI.Editor = BI.inherit(BI.Single, {
_checkWaterMark: function () {
var o = this.options;
if (!this.disabledWarterMark && this.editor.getValue() === "" && BI.isKey(o.watermark)) {
if (!this.disabledWaterMark && this.editor.getValue() === "" && BI.isKey(o.watermark)) {
this.watermark && this.watermark.visible();
} else {
this.watermark && this.watermark.invisible();
@ -18149,13 +18149,13 @@ BI.Editor = BI.inherit(BI.Single, {
this._checkError();
},
disableWarterMark: function () {
this.disabledWarterMark = true;
disableWaterMark: function () {
this.disabledWaterMark = true;
this._checkWaterMark();
},
enableWarterMark: function () {
this.disabledWarterMark = false;
enableWaterMark: function () {
this.disabledWaterMark = false;
this._checkWaterMark();
},

16
docs/base.js

@ -14351,15 +14351,15 @@ BI.FormulaEditor = BI.inherit(BI.Single, {
_checkWaterMark: function () {
var o = this.options;
if (!this.disabledWarterMark && BI.isEmptyString(this.editor.getValue()) && BI.isKey(o.watermark)) {
if (!this.disabledWaterMark && BI.isEmptyString(this.editor.getValue()) && BI.isKey(o.watermark)) {
this.watermark && this.watermark.visible();
} else {
this.watermark && this.watermark.invisible();
}
},
disableWarterMark: function () {
this.disabledWarterMark = true;
disableWaterMark: function () {
this.disabledWaterMark = true;
this._checkWaterMark();
},
@ -18111,7 +18111,7 @@ BI.Editor = BI.inherit(BI.Single, {
_checkWaterMark: function () {
var o = this.options;
if (!this.disabledWarterMark && this.editor.getValue() === "" && BI.isKey(o.watermark)) {
if (!this.disabledWaterMark && this.editor.getValue() === "" && BI.isKey(o.watermark)) {
this.watermark && this.watermark.visible();
} else {
this.watermark && this.watermark.invisible();
@ -18149,13 +18149,13 @@ BI.Editor = BI.inherit(BI.Single, {
this._checkError();
},
disableWarterMark: function () {
this.disabledWarterMark = true;
disableWaterMark: function () {
this.disabledWaterMark = true;
this._checkWaterMark();
},
enableWarterMark: function () {
this.disabledWarterMark = false;
enableWaterMark: function () {
this.disabledWaterMark = false;
this._checkWaterMark();
},

6
src/base/formula/formulaeditor.js

@ -90,15 +90,15 @@ BI.FormulaEditor = BI.inherit(BI.Single, {
_checkWaterMark: function () {
var o = this.options;
if (!this.disabledWarterMark && BI.isEmptyString(this.editor.getValue()) && BI.isKey(o.watermark)) {
if (!this.disabledWaterMark && BI.isEmptyString(this.editor.getValue()) && BI.isKey(o.watermark)) {
this.watermark && this.watermark.visible();
} else {
this.watermark && this.watermark.invisible();
}
},
disableWarterMark: function () {
this.disabledWarterMark = true;
disableWaterMark: function () {
this.disabledWaterMark = true;
this._checkWaterMark();
},

10
src/base/single/editor/editor.js

@ -204,7 +204,7 @@ BI.Editor = BI.inherit(BI.Single, {
_checkWaterMark: function () {
var o = this.options;
if (!this.disabledWarterMark && this.editor.getValue() === "" && BI.isKey(o.watermark)) {
if (!this.disabledWaterMark && this.editor.getValue() === "" && BI.isKey(o.watermark)) {
this.watermark && this.watermark.visible();
} else {
this.watermark && this.watermark.invisible();
@ -242,13 +242,13 @@ BI.Editor = BI.inherit(BI.Single, {
this._checkError();
},
disableWarterMark: function () {
this.disabledWarterMark = true;
disableWaterMark: function () {
this.disabledWaterMark = true;
this._checkWaterMark();
},
enableWarterMark: function () {
this.disabledWarterMark = false;
enableWaterMark: function () {
this.disabledWaterMark = false;
this._checkWaterMark();
},

Loading…
Cancel
Save