Merge pull request #4181 from RickCole21/fix-popover

fix: 修复Popover弹框显示异常问题
This commit is contained in:
RUNZE LU 2022-04-29 16:47:19 +08:00 committed by GitHub
commit 6c89528e13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 = {