We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
1.0.3
No response
script setup lang="ts"> function onScroll(context: { scrollTop: number; isFixed: boolean }) { console.log(context) } </script> <template> <div style="height: 200px" /> <div id="container" class="sticky-demo"> <div v-for="item in 40" :key="item"> {{ item }} </div> <t-sticky container="container" :z-index="1000000" @scroll="onScroll"> <t-button size="large" class="common-button green-button"> 指定容器 </t-button> </t-sticky> <div v-for="item in 40" :key="item"> {{ item }} </div> </div> </template> <style lang="less" scoped> .sticky-demo { overflow: scroll; width: 100%; height: 400px; background-color: rgb(255 255 255 / 100%); } .common-button { margin-left: 256px; width: 104px; color: #ffffff; } .green-button { color: #ffffff; background-color: rgb(0 168 112 / 100%); } </style>
可以指定父元素进行吸顶
pull request
The text was updated successfully, but these errors were encountered:
👋 @beloved-zh,感谢给 TDesign 提出了 issue。 请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。
Sorry, something went wrong.
fix: (Sticky) 只能针对浏览器窗口进行定位(Tencent#1087)
74a5877
fix: (Sticky) 只能针对浏览器窗口进行定位(#1087) (#1103)
2f3a36c
* fix: (Sticky) 只能针对浏览器窗口进行定位(#1087) * fix: 升级@vueuse/core,并改正误引入和升级后的异常 * fix: 修复sticky.vue中的eslint错误
Successfully merging a pull request may close this issue.
tdesign-mobile-vue 版本
1.0.3
重现链接
No response
重现步骤
期望结果
可以指定父元素进行吸顶
实际结果
No response
框架版本
No response
浏览器版本
No response
系统版本
No response
Node版本
No response
补充说明
No response
IssueShoot
pull request
并合并为准The text was updated successfully, but these errors were encountered: