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

fix: (Sticky) 只能针对浏览器窗口进行定位(#1087) #1103

Merged
merged 4 commits into from Sep 19, 2023

Conversation

demoadminjie
Copy link
Contributor

@demoadminjie demoadminjie commented Sep 18, 2023

🤔 这个 PR 的性质是?

  • 日常 bug 修复
  • 新特性提交
  • 文档改进
  • 演示代码改进
  • 组件样式/交互改进
  • CI/CD 改进
  • 重构
  • 代码风格优化
  • 测试用例
  • 分支合并
  • 其他

🔗 相关 Issue

fix #1087

💡 需求背景和解决方案

image

修复后
image

原因和解决方案:@vueuse/core库中useElementBounding方法在scrolled的元素内会无效导致的;这个问题在9.10.0版本修复了[issue]vueuse/vueuse#2596
因此将@vueuse/core升级到9.13.0版本就可以解决这个问题。(最新的v10版本缺少目前代码中使用的isNumber、isString等方法)

📝 更新日志

  • fix(Sticky): 修复组件只能针对浏览器窗口进行定位的问题

  • 本条 PR 不需要纳入 Changelog

☑️ 请求合并前的自查清单

⚠️ 请自检并全部勾选全部选项⚠️

  • 文档已补充或无须补充
  • 代码演示已提供或无须提供
  • TypeScript 定义已补充或无须补充
  • Changelog 已提供或无须提供

@anlyyao
Copy link
Collaborator

anlyyao commented Sep 19, 2023

@demoadminjie 流水线挂了~, 本地npm run test 和npm run build可复现

“最新的v10版本缺少目前代码中使用的isNumber、isString”问题,涉及处不多,辛苦顺便改成从 lodash中引入~

@github-actions
Copy link
Contributor

github-actions bot commented Sep 19, 2023

完成

@demoadminjie
Copy link
Contributor Author

@demoadminjie 流水线挂了~, 本地npm run test 和npm run build可复现

“最新的v10版本缺少目前代码中使用的isNumber、isString”问题,涉及处不多,辛苦顺便改成从 lodash中引入~

eslint错误导致的,我修复好了;从@vueuse/core引入的isNumber、isString也改成lodash引入,@vueuse/core同时也升级到最新版本了。

@anlyyao anlyyao merged commit 2f3a36c into Tencent:develop Sep 19, 2023
8 checks passed
@github-actions github-actions bot mentioned this pull request Oct 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Sticky] 只能针对浏览器窗口进行定位
2 participants