Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Shell]Shell Content支持宽度自适应配置 #4686

Open
gracezlj opened this issue Dec 28, 2023 · 3 comments
Open

[Shell]Shell Content支持宽度自适应配置 #4686

gracezlj opened this issue Dec 28, 2023 · 3 comments
Labels
💡 Feature Request New feature or request PR welcome We need you to help us by sending a pull request :)

Comments

@gracezlj
Copy link

Component

Shell

Feature Description

两侧布局时,左侧使用Shell.Navigation,右侧使用Shell.Content。左侧支持拉伸的场景,右侧宽度需要自适应。但目前Shell.Content内置容器 next-shell-sub-main: marginLeft写死的(按左侧初始宽度计算出来的)。希望可以支持受控,满足这个场景

Copy link

这是您为 Fusion/Next 提的第一个 issue,感谢您对 Fusion 的信任和支持,我们会尽快进行处理。

@YSMJ1994
Copy link
Contributor

YSMJ1994 commented Jan 2, 2024

sub-main的marginLeft 会在 react componentDidUpdate过程重新计算,你可以利用这一点来让其自动更新。
不过我们更建议让左侧支持拉伸作为一个 feature 纳入到 shell 组件中,而非仅仅开放一个内部元素的 style 属性(会导致 api 过于臃肿),我们会将这个特性纳入到我们的规划中,不过优先级可能比较低,也欢迎你提供PR。

@YSMJ1994 YSMJ1994 added 💡 Feature Request New feature or request PR welcome We need you to help us by sending a pull request :) labels Jan 3, 2024
Copy link

github-actions bot commented Feb 2, 2024

你好,该 issue 已 30 天没有活动,因此被标记为 stale,如果之后的 7 天仍然没有活动,该 issue 将被自动关闭

@github-actions github-actions bot added the Stale not active for a lone time label Feb 2, 2024
@eternalsky eternalsky removed the Stale not active for a lone time label Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💡 Feature Request New feature or request PR welcome We need you to help us by sending a pull request :)
Projects
None yet
Development

No branches or pull requests

3 participants