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(skeleton): 修复skeleton响应性问题 #238

Merged
merged 2 commits into from
Jul 18, 2022

Conversation

TingShine
Copy link
Contributor

@TingShine TingShine commented Jul 14, 2022

fix #235

🤔 这个 PR 的性质是?

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

🔗 相关 Issue

#235

💡 需求背景和解决方案

skeleton组件中传的props值仅第一次赋值可用,后续改变props值时骨架屏不会及时响应,主要的问题在于vue3中需要使用toRefs使得props中的参数获得响应性,直接获取props的值仅为固定的值

📝 更新日志

  • fix(Skeleton): 修复 props 变化不重新渲染的问题

  • 本条 PR 不需要纳入 Changelog

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

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

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

@github-actions
Copy link
Contributor

github-actions bot commented Jul 15, 2022

完成

@xiaosansiji
Copy link
Collaborator

https://github.com/Tencent/tdesign-mobile-vue/blob/develop/package.json#L87
snapshot 里的更新应该是对的,tdesign-icons-vue-next 包上周有更新,因为本仓库里写的是 "tdesign-icons-vue-next": "^0.1.0",CI 里重新安装就会装到最新的 0.1.3 版本,这个 PR 中将 Icon 组件默认的 t-icon 类名修改了:Tencent/tdesign-icons#30

@xiaosansiji
Copy link
Collaborator

你本地重新安装一下依赖,然后更新 snapshot 应该就能看到有修改了,重新提交上来

@Dengzygx
Copy link
Collaborator

action跑测试用例有点问题,执行一下npm run test:update,把新生成的snap文件提交上来试试

Copy link
Collaborator

@LeeJim LeeJim left a comment

Choose a reason for hiding this comment

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

LGTM

@LeeJim LeeJim merged commit e9e0ed7 into Tencent:develop Jul 18, 2022
@github-actions github-actions bot mentioned this pull request Jul 18, 2022
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.

[Skeleton] 骨架屏接收的props在变更后没有响应
4 participants