Skip to content

Commit cc56c95

Browse files
echoylechoyl
andauthored
refactor(deprecated):修复Popover使用overlayInnerStyle后报deprecated错误的问题 (#9064)
Co-authored-by: echoyl <[email protected]>
1 parent 5cea64f commit cc56c95

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

packages/layout/src/components/Help/ProHelpPopover.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,7 @@ export const ProHelpPopover: React.FC<ProHelpPopoverProps> = (props) => {
4848
const { wrapSSR } = useStyle(className);
4949
return wrapSSR(
5050
<Popover
51-
overlayInnerStyle={{
52-
padding: 0,
53-
}}
51+
styles={{ body: {padding: 0} }}
5452
content={
5553
<div
5654
className={classNames(

packages/utils/src/components/FilterDropdown/index.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,7 @@ const FilterDropdown: React.FC<DropdownProps> = (props) => {
6262
placement={placement}
6363
trigger={['click']}
6464
{...dropdownOpenProps}
65-
overlayInnerStyle={{
66-
padding: 0,
67-
}}
65+
styles={{ body: {padding: 0} }}
6866
content={
6967
<div
7068
ref={htmlRef}

0 commit comments

Comments
 (0)