From b28d7fbb1f72cc482080938ce056441f86d58160 Mon Sep 17 00:00:00 2001 From: RickCole21 Date: Thu, 28 Apr 2022 17:59:56 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8DPopover=E5=BC=B9?= =?UTF-8?q?=E6=A1=86=E6=98=BE=E7=A4=BA=E5=BC=82=E5=B8=B8=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderers/PopOver.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/renderers/PopOver.tsx b/src/renderers/PopOver.tsx index 9f18477e2..f5cf4f180 100644 --- a/src/renderers/PopOver.tsx +++ b/src/renderers/PopOver.tsx @@ -214,7 +214,6 @@ export const HocPopOver = (popOver.mode === 'dialog' || popOver.mode === 'drawer') ) { schema = { - type: popOver.mode, actions: [ { label: __('Dialog.close'), @@ -222,7 +221,8 @@ export const HocPopOver = actionType: 'cancel' } ], - ...popOver + ...popOver, + type: popOver.mode }; } else if (typeof popOver === 'string') { schema = {