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

请将Layout的siderPlacement属性直接配置到LayoutSider上,解决一个布局中分别有左右侧LayoutSider时的配置 #5088

Open
qyvip opened this issue Jul 21, 2023 · 0 comments
Labels
feature request New feature or request

Comments

@qyvip
Copy link

qyvip commented Jul 21, 2023

This function solves the problem (这个功能解决的问题)

通过siderPlacement可以在Layout上配置属性,但在一个布局中分别有左右侧LayoutSider时,将无如通过siderPlacement配置来处理了,希望可以将siderPlacement直接配置到LayoutSider上

解决Layout中使用多个LayoutSider的功能,本质上Header Footer都是类LayoutSider,只是位置不同,同时Header 和Footer也可以支持自带的sider-placement,实现收缩功能

Expected API (期望的 API)

<n-layout-sider
collapse-mode="width"
:collapsed-width="120"
:width="240"
show-trigger="arrow-circle"
content-style="padding: 24px;"
bordered

        sider-placement="right"

  >
@github-actions github-actions bot added the feature request New feature or request label Jul 21, 2023
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
Projects
None yet
Development

No branches or pull requests

1 participant