From 3e26deafde9638d68b7c9b749a8ce01c93faa04d Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Thu, 25 Jan 2018 19:11:55 +0800 Subject: [PATCH] update --- demo/js/base/button/demo.text_button.js | 3 ++- demo/js/case/editor/demo.shelter_editor.js | 3 ++- dist/base.js | 3 ++- dist/bundle.js | 9 +++++---- dist/case.js | 6 +++--- dist/demo.js | 6 ++++-- dist/fineui.js | 9 +++++---- src/base/single/button/buttons/button.text.js | 3 ++- src/case/editor/editor.shelter.js | 6 +++--- 9 files changed, 28 insertions(+), 20 deletions(-) diff --git a/demo/js/base/button/demo.text_button.js b/demo/js/base/button/demo.text_button.js index bca5414ee..a98414a8c 100644 --- a/demo/js/base/button/demo.text_button.js +++ b/demo/js/base/button/demo.text_button.js @@ -8,7 +8,8 @@ Demo.Button = BI.inherit(BI.Widget, { el: { type: "bi.text_button", text: "文字按钮", - height: 30 + height: 30, + keyword: "w" } } ]; diff --git a/demo/js/case/editor/demo.shelter_editor.js b/demo/js/case/editor/demo.shelter_editor.js index a9c95ae61..2d351df62 100644 --- a/demo/js/case/editor/demo.shelter_editor.js +++ b/demo/js/case/editor/demo.shelter_editor.js @@ -13,7 +13,8 @@ Demo.ClearEditor = BI.inherit(BI.Widget, { return v != "a"; }, watermark: "可以设置标记的输入框", - text: "这是一个遮罩" + value: "这是一个遮罩", + keyword: "z" }); BI.createWidget({ type: "bi.vertical", diff --git a/dist/base.js b/dist/base.js index 0ddb4b702..dcf7260ad 100644 --- a/dist/base.js +++ b/dist/base.js @@ -16688,7 +16688,8 @@ BI.TextButton = BI.inherit(BI.BasicButton, { rgap: o.rgap, text: o.text, value: o.value, - py: o.py + py: o.py, + keyword: o.keyword }); }, diff --git a/dist/bundle.js b/dist/bundle.js index ec7ec3f9e..16bde66ae 100644 --- a/dist/bundle.js +++ b/dist/bundle.js @@ -42735,7 +42735,8 @@ BI.TextButton = BI.inherit(BI.BasicButton, { rgap: o.rgap, text: o.text, value: o.value, - py: o.py + py: o.py, + keyword: o.keyword }); }, @@ -68831,8 +68832,7 @@ BI.ShelterEditor = BI.inherit(BI.Widget, { tipType: o.tipType, textAlign: o.textAlign, height: o.height, - hgap: 4, - keyword: o.keyword + hgap: 4 }); BI.createWidget({ type: "bi.absolute", @@ -68912,6 +68912,7 @@ BI.ShelterEditor = BI.inherit(BI.Widget, { }); this._showHint(); self._checkText(); + this.text.doRedMark(o.keyword); }, _checkText: function () { @@ -69002,7 +69003,7 @@ BI.ShelterEditor = BI.inherit(BI.Widget, { setValue: function (k) { this.editor.setValue(k); - this._checkText();node + this._checkText(); }, getValue: function () { diff --git a/dist/case.js b/dist/case.js index 25d0d339c..f94a7684c 100644 --- a/dist/case.js +++ b/dist/case.js @@ -6316,8 +6316,7 @@ BI.ShelterEditor = BI.inherit(BI.Widget, { tipType: o.tipType, textAlign: o.textAlign, height: o.height, - hgap: 4, - keyword: o.keyword + hgap: 4 }); BI.createWidget({ type: "bi.absolute", @@ -6397,6 +6396,7 @@ BI.ShelterEditor = BI.inherit(BI.Widget, { }); this._showHint(); self._checkText(); + this.text.doRedMark(o.keyword); }, _checkText: function () { @@ -6487,7 +6487,7 @@ BI.ShelterEditor = BI.inherit(BI.Widget, { setValue: function (k) { this.editor.setValue(k); - this._checkText();node + this._checkText(); }, getValue: function () { diff --git a/dist/demo.js b/dist/demo.js index c997d56bb..7eb405e22 100644 --- a/dist/demo.js +++ b/dist/demo.js @@ -272,7 +272,8 @@ BI.shortcut("demo.image_button", Demo.Button);Demo.Button = BI.inherit(BI.Widget el: { type: "bi.text_button", text: "文字按钮", - height: 30 + height: 30, + keyword: "w" } } ]; @@ -2248,7 +2249,8 @@ Demo.ClearEditor = BI.inherit(BI.Widget, { return v != "a"; }, watermark: "可以设置标记的输入框", - text: "这是一个遮罩" + value: "这是一个遮罩", + keyword: "z" }); BI.createWidget({ type: "bi.vertical", diff --git a/dist/fineui.js b/dist/fineui.js index 00644c2d0..9902658f4 100644 --- a/dist/fineui.js +++ b/dist/fineui.js @@ -44499,7 +44499,8 @@ BI.TextButton = BI.inherit(BI.BasicButton, { rgap: o.rgap, text: o.text, value: o.value, - py: o.py + py: o.py, + keyword: o.keyword }); }, @@ -70595,8 +70596,7 @@ BI.ShelterEditor = BI.inherit(BI.Widget, { tipType: o.tipType, textAlign: o.textAlign, height: o.height, - hgap: 4, - keyword: o.keyword + hgap: 4 }); BI.createWidget({ type: "bi.absolute", @@ -70676,6 +70676,7 @@ BI.ShelterEditor = BI.inherit(BI.Widget, { }); this._showHint(); self._checkText(); + this.text.doRedMark(o.keyword); }, _checkText: function () { @@ -70766,7 +70767,7 @@ BI.ShelterEditor = BI.inherit(BI.Widget, { setValue: function (k) { this.editor.setValue(k); - this._checkText();node + this._checkText(); }, getValue: function () { diff --git a/src/base/single/button/buttons/button.text.js b/src/base/single/button/buttons/button.text.js index 2f8476fad..505ceffa8 100644 --- a/src/base/single/button/buttons/button.text.js +++ b/src/base/single/button/buttons/button.text.js @@ -41,7 +41,8 @@ BI.TextButton = BI.inherit(BI.BasicButton, { rgap: o.rgap, text: o.text, value: o.value, - py: o.py + py: o.py, + keyword: o.keyword }); }, diff --git a/src/case/editor/editor.shelter.js b/src/case/editor/editor.shelter.js index 128c6746a..3e7d42e45 100644 --- a/src/case/editor/editor.shelter.js +++ b/src/case/editor/editor.shelter.js @@ -52,8 +52,7 @@ BI.ShelterEditor = BI.inherit(BI.Widget, { tipType: o.tipType, textAlign: o.textAlign, height: o.height, - hgap: 4, - keyword: o.keyword + hgap: 4 }); BI.createWidget({ type: "bi.absolute", @@ -133,6 +132,7 @@ BI.ShelterEditor = BI.inherit(BI.Widget, { }); this._showHint(); self._checkText(); + this.text.doRedMark(o.keyword); }, _checkText: function () { @@ -223,7 +223,7 @@ BI.ShelterEditor = BI.inherit(BI.Widget, { setValue: function (k) { this.editor.setValue(k); - this._checkText();node + this._checkText(); }, getValue: function () {