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

[Affix] 支持affix #2061

Open
xmsz-stu opened this issue Feb 1, 2024 · 3 comments
Open

[Affix] 支持affix #2061

xmsz-stu opened this issue Feb 1, 2024 · 3 comments
Labels
feature request Request new feature

Comments

@xmsz-stu
Copy link

xmsz-stu commented Feb 1, 2024

Which Component Need Enhancement 期望新增功能的组件

  • Affix

What does the proposed API look like 期望支持的API

支持Affix

Feature Description 功能描述

很多场景下需要Affix组件,比如编辑表单(无法使用sticky)右侧的预览,或者tab
image

Additional information 补充说明

@xmsz-stu xmsz-stu added the feature request Request new feature label Feb 1, 2024
@DaiQiangReal
Copy link
Collaborator

可以举个 无法使用 sticky 的例子吗?编辑表单用 sticky 是遇到了什么问题吗 @xmsz-stu

@xmsz-stu
Copy link
Author

xmsz-stu commented Feb 2, 2024

可以举个 无法使用 sticky 的例子吗?编辑表单用 sticky 是遇到了什么问题吗 @xmsz-stu

多层dom结构的时候

<div className='h-100 overflow-scroll'>
        <div>
          <div className=' sticky top-0'>Sticky</div>
        </div>
        <div className='h-100vh'></div>
      </div>

@DaiQiangReal
Copy link
Collaborator

可以举个 无法使用 sticky 的例子吗?编辑表单用 sticky 是遇到了什么问题吗 @xmsz-stu

多层dom结构的时候

<div className='h-100 overflow-scroll'>
        <div>
          <div className=' sticky top-0'>Sticky</div>
        </div>
        <div className='h-100vh'></div>
      </div>

懂了,我们排一下

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Request new feature
Projects
None yet
Development

No branches or pull requests

2 participants