diff --git a/src/base/combination/group.virtual.js b/src/base/combination/group.virtual.js index f7f5a894f..af5b4f525 100644 --- a/src/base/combination/group.virtual.js +++ b/src/base/combination/group.virtual.js @@ -44,8 +44,8 @@ BI.VirtualGroup = BI.inherit(BI.Widget, { }, _packageLayout: function (items) { - var o = this.options, layouts = BI.isArray(o.layouts) ? o.layouts : [o.layouts]; - var layout = BI.deepClone(layouts[0]); + var o = this.options, layout = BI.deepClone(o.layouts[0]); + var lay = BI.formatEL(layout).el; while (lay && lay.items && !BI.isEmpty(lay.items)) { lay = BI.formatEL(lay.items[0]).el; diff --git a/src/base/foundation/message.js b/src/base/foundation/message.js index 0b9b174ce..54d66c8d7 100644 --- a/src/base/foundation/message.js +++ b/src/base/foundation/message.js @@ -164,7 +164,7 @@ BI.Msg = function () { height: 40 }, center: { - el: { + el: BI.isPlainObject(message) ? message : { type: "bi.label", vgap: 10, hgap: 20,