From 41aeb5d8c59ad9103c803f453030b233f097dfc0 Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Sun, 8 Apr 2018 16:34:14 +0800 Subject: [PATCH] =?UTF-8?q?BI-17817=20rich=5Feditor=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dist/bundle.js | 9 ++++++++- dist/case.js | 9 ++++++++- src/case/button/item.singleselect.radio.js | 2 +- src/case/richeditor/richeditor.js | 7 +++++++ 4 files changed, 24 insertions(+), 3 deletions(-) diff --git a/dist/bundle.js b/dist/bundle.js index c48bc6ccb7..fc822d800e 100644 --- a/dist/bundle.js +++ b/dist/bundle.js @@ -72264,7 +72264,7 @@ BI.shortcut("bi.single_select_item", BI.SingleSelectItem);/** BI.SingleSelectRadioItem = BI.inherit(BI.BasicButton, { _defaultConfig: function () { return BI.extend(BI.SingleSelectRadioItem.superclass._defaultConfig.apply(this, arguments), { - extraCls: "bi-single-select-radio-item bi-list-item-active", + extraCls: "bi-single-select-radio-item", logic: { dynamic: false }, @@ -83148,6 +83148,13 @@ BI.RichEditor = BI.inherit(BI.Widget, { }; }, + mounted: function () { + var o = this.options; + if(BI.isNull(o.value)) { + this.editor.setValue(o.value); + } + }, + focus: function () { this.editor.focus(); }, diff --git a/dist/case.js b/dist/case.js index b331dd7ef2..bc6e04dcab 100644 --- a/dist/case.js +++ b/dist/case.js @@ -328,7 +328,7 @@ BI.shortcut("bi.single_select_item", BI.SingleSelectItem);/** BI.SingleSelectRadioItem = BI.inherit(BI.BasicButton, { _defaultConfig: function () { return BI.extend(BI.SingleSelectRadioItem.superclass._defaultConfig.apply(this, arguments), { - extraCls: "bi-single-select-radio-item bi-list-item-active", + extraCls: "bi-single-select-radio-item", logic: { dynamic: false }, @@ -11212,6 +11212,13 @@ BI.RichEditor = BI.inherit(BI.Widget, { }; }, + mounted: function () { + var o = this.options; + if(BI.isNull(o.value)) { + this.editor.setValue(o.value); + } + }, + focus: function () { this.editor.focus(); }, diff --git a/src/case/button/item.singleselect.radio.js b/src/case/button/item.singleselect.radio.js index 15e89a9dad..a1ee88ee16 100644 --- a/src/case/button/item.singleselect.radio.js +++ b/src/case/button/item.singleselect.radio.js @@ -6,7 +6,7 @@ BI.SingleSelectRadioItem = BI.inherit(BI.BasicButton, { _defaultConfig: function () { return BI.extend(BI.SingleSelectRadioItem.superclass._defaultConfig.apply(this, arguments), { - extraCls: "bi-single-select-radio-item bi-list-item-active", + extraCls: "bi-single-select-radio-item", logic: { dynamic: false }, diff --git a/src/case/richeditor/richeditor.js b/src/case/richeditor/richeditor.js index 809c2a6716..54cfe33b0d 100644 --- a/src/case/richeditor/richeditor.js +++ b/src/case/richeditor/richeditor.js @@ -72,6 +72,13 @@ BI.RichEditor = BI.inherit(BI.Widget, { }; }, + mounted: function () { + var o = this.options; + if(BI.isNull(o.value)) { + this.editor.setValue(o.value); + } + }, + focus: function () { this.editor.focus(); },