Skip to content

Commit

Permalink
fix:drawer兼容antd 4,antVersion默认为v4
Browse files Browse the repository at this point in the history
  • Loading branch information
昔梦 committed Dec 31, 2024
1 parent 4f61969 commit 61b7e65
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/x-flow/src/components/PanelContainer/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
bottom: 14px;
right: 12px;
border-radius: 20px;
height: auto; // 兼容antd4
}

.ant-drawer-close {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
bottom: 14px;
right: 12px;
border-radius: 20px;
height: auto;
}

.ant-drawer-close {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ const PanelStatusLogContainer: FC<IPanelProps> = (props: IPanelProps) => {
headerStyle={{
paddingBottom: '12px',
}}
style={{
position: 'absolute',
}}
title={
<>
<div className="title-box">
Expand Down
2 changes: 1 addition & 1 deletion packages/x-flow/src/withProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default function withProvider<T>(
iconFontUrl,
globalConfig,
logPanel,
antdVersion = 'V5',
antdVersion,
...restProps
} = props;
const settingMap = useMemo(() => {
Expand Down

0 comments on commit 61b7e65

Please sign in to comment.