Skip to content

Commit

Permalink
fix: invalid style
Browse files Browse the repository at this point in the history
  • Loading branch information
gz65555 committed Mar 31, 2022
1 parent 75e687f commit 49a60e1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/utils/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@ export const genRecursive = (rawConfig: IPanelConfig, rootConfig: ISettings = {}
return 'width';
};

const style = config.resizeConfig?.style ?? {};

element = (
<Resizable
{...dataProps}
Expand All @@ -154,7 +156,7 @@ export const genRecursive = (rawConfig: IPanelConfig, rootConfig: ISettings = {}
defaultSize={genRealSize(config.resizeConfig?.defaultSize, realName, rootConfig)}
enable={direction}
key={`rootPanel-${realName}`}
style={isColumn ? { flexDirection: 'column' } : {}}
style={isColumn ? { flexDirection: 'column', ...style } : style}
ref={c => refs[realName] = c}
onResizeStop={onResizeStop({
panelPos: realName,
Expand Down

0 comments on commit 49a60e1

Please sign in to comment.