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(Swiper): add touchable props #565

Merged
merged 4 commits into from
Jan 20, 2025
Merged

feat(Swiper): add touchable props #565

merged 4 commits into from
Jan 20, 2025

Conversation

anlyyao
Copy link
Collaborator

@anlyyao anlyyao commented Jan 20, 2025

🤔 这个 PR 的性质是?

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

🔗 相关 Issue

💡 需求背景和解决方案

notice-bar垂直滚动条通过 --td-notice-bar-height 调整高度使用示例:

//  touchable 默认为 false,若希望touch滑动,需要显示指定为 true 
<div className='notice-bar-parent'>
 <NoticeBar visible marquee content={content1} direction="vertical" touchable={true} prefixIcon={<SoundIcon />} />
</div>
 
.notice-bar-parent {
  --td-notice-bar-height: 10rem;

// 高度改变后,内容不居中,需要手动调整
  .t-notice-bar {
    align-items: center;
  }

  .t-swiper__item {
    display: flex;
    align-items: center;
  }
}

📝 更新日志

  • feat(Swiper): 新增 touchable 属性

  • 本条 PR 不需要纳入 Changelog

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

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

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

@anlyyao anlyyao changed the title Chore/swiper/touchable feat(Swiper): add touchable props Jan 20, 2025
@anlyyao
Copy link
Collaborator Author

anlyyao commented Jan 20, 2025

/update-snapshot

Copy link
Contributor

⏳ 正在运行快照更新。。。 CI: Open

Copy link
Contributor

github-actions bot commented Jan 20, 2025

完成

@anlyyao anlyyao merged commit 201cb5f into develop Jan 20, 2025
7 checks passed
@anlyyao anlyyao deleted the chore/swiper/touchable branch January 20, 2025 13:26
This was referenced Jan 20, 2025
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.

2 participants