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 watermark loading status #2094

Merged
merged 5 commits into from
Mar 28, 2023

Conversation

duanbaosheng
Copy link
Contributor

@duanbaosheng duanbaosheng commented Mar 27, 2023

🤔 这个 PR 的性质是?

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

🔗 相关 Issue

https://codesandbox.io/s/tdesign-react-demo-forked-ul7632?file=/src/demo.jsx
waterMark 包裹loading组件,loading组件无法该变状态。

💡 需求背景和解决方案

watermark组件中,监控 watermark 组件内部包裹的元素的删除事件,如果子元素被删除后,则会重新将被删除的元素添加回去,这就导致loading组件只能被加到dom中,在改变状态的时候,无法移除loading组件。
修改这个逻辑,只对对watermark包裹的 水印子元素做监控,水印子元素被删除,重新添加

📝 更新日志

  • fix(组件名称): 处理问题或特性描述 ...

  • 本条 PR 不需要纳入 Changelog

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

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

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

@github-actions
Copy link
Contributor

完成

@carolin913 carolin913 merged commit 75ef0cf into Tencent:develop Mar 28, 2023
This was referenced Mar 30, 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.

2 participants