Skip to content

Commit

Permalink
feat: 支持布局over hidden
Browse files Browse the repository at this point in the history
  • Loading branch information
pearone committed Feb 27, 2024
1 parent aeb5608 commit 8a4452b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/react-layout/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@dpdfe/react-layout",
"description": "react layout",
"author": "pearone stefan-hui",
"version": "2.2.23",
"version": "2.2.26",
"online_version": "2.0.27",
"dev_version": "2.1.21",
"license": "MIT",
Expand Down
4 changes: 3 additions & 1 deletion packages/react-layout/src/component/layout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -891,7 +891,9 @@ const ReactLayout = (props: ReactLayoutProps) => {
props.layout_type === LayoutType.DRAG
? 'auto'
: 'hidden',
overflowY: props.use_max_bottom ? 'hidden' : 'auto',
overflowY: props.use_viewport_hidden
? 'hidden'
: 'auto',
position: 'relative',
scrollBehavior: 'smooth'
}}
Expand Down
1 change: 1 addition & 0 deletions packages/react-layout/src/interfaces/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ type LayoutBase = NodeProps & {
need_grid_bound: boolean; // 需要grid边界
need_drag_bound: boolean; // 需要drag边界
use_max_bottom?: boolean; // 需要用元素的最大高度显示计算
use_viewport_hidden?: boolean; // 需要用overflow-hidden
not_use_edge_scroll?: boolean; // 不需要边界滚动
item_margin: [number, number]; // 元素margin
widgets: LayoutItem[]; // 元素列表
Expand Down

0 comments on commit 8a4452b

Please sign in to comment.