Browse Source

message支持传json

es6
guy 3 years ago
parent
commit
8387f936ce
  1. 4
      src/base/combination/group.virtual.js
  2. 2
      src/base/foundation/message.js

4
src/base/combination/group.virtual.js

@ -44,8 +44,8 @@ BI.VirtualGroup = BI.inherit(BI.Widget, {
}, },
_packageLayout: function (items) { _packageLayout: function (items) {
var o = this.options, layouts = BI.isArray(o.layouts) ? o.layouts : [o.layouts]; var o = this.options, layout = BI.deepClone(o.layouts[0]);
var layout = BI.deepClone(layouts[0]);
var lay = BI.formatEL(layout).el; var lay = BI.formatEL(layout).el;
while (lay && lay.items && !BI.isEmpty(lay.items)) { while (lay && lay.items && !BI.isEmpty(lay.items)) {
lay = BI.formatEL(lay.items[0]).el; lay = BI.formatEL(lay.items[0]).el;

2
src/base/foundation/message.js

@ -164,7 +164,7 @@ BI.Msg = function () {
height: 40 height: 40
}, },
center: { center: {
el: { el: BI.isPlainObject(message) ? message : {
type: "bi.label", type: "bi.label",
vgap: 10, vgap: 10,
hgap: 20, hgap: 20,

Loading…
Cancel
Save