Browse Source

Merge pull request #320 in FUI/fineui from ~WINDY/fui:master to master

* commit '41aeb5d8c59ad9103c803f453030b233f097dfc0':
  BI-17817 rich_editor支持默认值
es6
guy 6 years ago
parent
commit
26d6580d82
  1. 9
      dist/bundle.js
  2. 9
      dist/case.js
  3. 2
      src/case/button/item.singleselect.radio.js
  4. 7
      src/case/richeditor/richeditor.js

9
dist/bundle.js vendored

@ -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();
},

9
dist/case.js vendored

@ -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();
},

2
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
},

7
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();
},

Loading…
Cancel
Save