Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@tuesdaytoyou
Copy link
Contributor

问题描述

修复了 FloatingPanel 组件文档中的错误,将 window.innerWidth * 0.6 错误地用于计算面板高度改为正确的 window.innerHeight * 0.6

修改内容

修改了以下文件中的默认值描述:

  • packages/vant/src/floating-panel/README.md(英文文档)
  • packages/vant/src/floating-panel/README.zh-CN.md(中文文档)

影响范围

  • 仅修改了文档中的描述,不影响组件的实际功能
  • 不影响已有的代码实现,因为实际代码中已经正确使用了 window.innerHeight

Copy link
Member

@chenjiahan chenjiahan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@chenjiahan chenjiahan merged commit 65431c9 into youzan:main Apr 25, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants