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

[Feature Request] Sticky slot 增加isFixed 参数 #13170

Open
reuwi opened this issue Oct 24, 2024 · 0 comments
Open

[Feature Request] Sticky slot 增加isFixed 参数 #13170

reuwi opened this issue Oct 24, 2024 · 0 comments

Comments

@reuwi
Copy link

reuwi commented Oct 24, 2024

这个功能解决了什么问题?

sticky 的 slot 增加 isFixed 参数,方便在不同状态下展示不同样式,目前需要通过回调来获取这个状态太麻烦了

你期望的 API 是什么样子的?

<van-sticky>
<template #default="slotData">
<div :class="{isFixed: slotData.isFixed}"></div>
</template>
</van-sticky>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant