From c77f90c8838a5f62dbea55a0e5c59e6cd82a29a2 Mon Sep 17 00:00:00 2001 From: Yao Date: Mon, 4 Dec 2017 20:39:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20dialog=20=E8=87=AA?= =?UTF-8?q?=E5=AE=9A=E4=B9=89=E6=8C=89=E9=92=AE=E6=97=B6=E5=87=BA=E7=8E=B0?= =?UTF-8?q?=E7=9A=84bug=20(#72)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/dialog/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/dialog/index.js b/packages/dialog/index.js index b99c87be..bc97a739 100644 --- a/packages/dialog/index.js +++ b/packages/dialog/index.js @@ -28,6 +28,7 @@ module.exports = { // 处理默认按钮的展示 // 纵向排布确认按钮在上方 + let showCustomBtns = false; if (buttons.length === 0) { if (showConfirm) { buttons.push({ @@ -49,12 +50,15 @@ module.exports = { buttons.unshift(cancelButton); } } + } else { + showCustomBtns = true; } return new Promise((resolve, reject) => { this.setData({ zanDialog: { show: true, + showCustomBtns, buttons, title, content,