diff --git a/changelog.md b/changelog.md index a00c12798..38b9c7fcd 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,6 @@ # 更新日志 2.0(2021-12) +- BI.Msg.alert支持message传json格式 - 支持BI.config(function(){})进行系统配置 2.0(2021-11) 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,