From 7730dce67f7c14e20195fd0ed899085447005921 Mon Sep 17 00:00:00 2001 From: "Austin.Duan" Date: Mon, 19 Jun 2023 18:30:44 +0800 Subject: [PATCH 1/2] =?UTF-8?q?REPORT-97636=20fix:=20=E4=BF=AE=E6=94=B9pop?= =?UTF-8?q?over=E5=8F=96=E6=B6=88=E6=8C=89=E9=92=AE=E6=A0=B7=E5=BC=8F?= =?UTF-8?q?=E3=80=81=E5=A2=9E=E5=8A=A0=E6=8C=89=E9=92=AE=E9=AB=98=E5=BA=A6?= =?UTF-8?q?=E5=8F=AF=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/base/foundation/message.js | 18 ++++++++++++------ src/base/layer/layer.popover.js | 5 ++++- src/case/combo/bubblecombo/popup.bubble.js | 2 +- 3 files changed, 17 insertions(+), 8 deletions(-) diff --git a/src/base/foundation/message.js b/src/base/foundation/message.js index 380e12039..b94dfbbcd 100644 --- a/src/base/foundation/message.js +++ b/src/base/foundation/message.js @@ -10,12 +10,16 @@ BI.Msg = ((function () { var toastStack = []; + var defaultConfig = { + buttonHeight: 24, + }; + return { - alert: function (title, message, callback) { - this._show(false, title, message, callback); + alert: function (title, message, callback, config = defaultConfig) { + this._show(false, title, message, callback, config); }, - confirm: function (title, message, callback) { - this._show(true, title, message, callback); + confirm: function (title, message, callback, config = defaultConfig) { + this._show(true, title, message, callback, config); }, prompt: function (title, message, value, callback, min_width) { // BI.Msg.prompt(title, message, value, callback, min_width); @@ -74,7 +78,7 @@ BI.Msg = ((function () { toast.destroy?.(); }; }, - _show: function (hasCancel, title, message, callback) { + _show: function (hasCancel, title, message, callback, config) { BI.isNull($mask) && ($mask = BI.Widget._renderEngine.createElement("
").css({ position: "absolute", zIndex: BI.zIndex_tip - 2, @@ -105,8 +109,9 @@ BI.Msg = ((function () { controlItems.push({ el: { type: "bi.button", + height: config.buttonHeight, text: BI.i18nText("BI-Basic_Cancel"), - level: "ignore", + light: true, handler: function () { close(); if (BI.isFunction(callback)) { @@ -119,6 +124,7 @@ BI.Msg = ((function () { controlItems.push({ el: { type: "bi.button", + height: config.buttonHeight, text: BI.i18nText("BI-Basic_OK"), handler: function () { close(); diff --git a/src/base/layer/layer.popover.js b/src/base/layer/layer.popover.js index 4244a1efb..063c2724c 100644 --- a/src/base/layer/layer.popover.js +++ b/src/base/layer/layer.popover.js @@ -25,6 +25,7 @@ BI.Popover = BI.inherit(BI.Widget, { body: null, footer: null, footerHeight: 44, + footerButtonHeight: 24, closable: true, // BI-40839 是否显示右上角的关闭按钮 bodyHgap: BI.SIZE_CONSANTS.H_GAP_SIZE, bodyTgap: BI.SIZE_CONSANTS.V_GAP_SIZE, @@ -249,15 +250,17 @@ BI.BarPopover = BI.inherit(BI.Popover, { lgap: 10, items: [{ type: "bi.button", + height: o.footerButtonHeight, text: this.options.btns[1], value: 1, - level: "ignore", + light: true, handler: function (v) { self.fireEvent(BI.Popover.EVENT_CANCEL, v); self.close(v); }, }, { type: "bi.button", + height: o.footerButtonHeight, text: this.options.btns[0], warningTitle: o.warningTitle, value: 0, diff --git a/src/case/combo/bubblecombo/popup.bubble.js b/src/case/combo/bubblecombo/popup.bubble.js index 6826a99f5..26cff20b6 100644 --- a/src/case/combo/bubblecombo/popup.bubble.js +++ b/src/case/combo/bubblecombo/popup.bubble.js @@ -32,7 +32,7 @@ BI.BubblePopupBarView = BI.inherit(BI.BubblePopupView, { buttons: [{ value: false, text: BI.i18nText("BI-Basic_Cancel"), - level: "ignore" + light: true, }, { text: BI.i18nText(BI.i18nText("BI-Basic_OK")), value: true From 2e77dfff9dbe0269f0fe26c4fe523d87892d9a8b Mon Sep 17 00:00:00 2001 From: data Date: Tue, 20 Jun 2023 10:56:35 +0800 Subject: [PATCH 2/2] auto upgrade version to 2.0.20230620105620 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 6f5b7584f..d38e09070 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "fineui", - "version": "2.0.20230607090643", + "version": "2.0.20230620105620", "description": "fineui", "main": "dist/fineui_without_conflict.min.js", "types": "dist/lib/index.d.ts",