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

feat(tree): add Tree onScroll api #3295

Merged
merged 4 commits into from
Dec 23, 2024
Merged

feat(tree): add Tree onScroll api #3295

merged 4 commits into from
Dec 23, 2024

Conversation

HaixingOoO
Copy link
Collaborator

🤔 这个 PR 的性质是?

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

🔗 相关 Issue

💡 需求背景和解决方案

Tree support onScroll api

📝 更新日志

  • feat(Tree): support onScroll api

  • 本条 PR 不需要纳入 Changelog

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

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

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

Copy link
Contributor

github-actions bot commented Dec 23, 2024

失败

@uyarn uyarn merged commit fffe54a into develop Dec 23, 2024
7 checks passed
@uyarn uyarn deleted the feat/tree/on-scroll branch December 23, 2024 16:32
@@ -238,7 +238,7 @@ export interface TdTreeProps<T extends TreeOptionData = TreeOptionData> {
/**
* 滚动事件
*/
onScroll?: (params: { e: WheelEvent<HTMLDivElement> }) => void;
onScroll?: (params: { e: WheelEvent }) => void;
Copy link
Collaborator

Choose a reason for hiding this comment

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

同步API 会有覆盖问题,默认带出的<HTMLDivElement>

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@uyarn 大佬看看是vue和react一样?还是怎么统一?

Copy link
Collaborator

Choose a reason for hiding this comment

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

React 特殊点,API 平台有处理
image

This was referenced Dec 25, 2024
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.

3 participants