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

[GridItem] 修改image中内容失效 #974

Closed
TryBin03 opened this issue Jul 20, 2023 · 3 comments
Closed

[GridItem] 修改image中内容失效 #974

TryBin03 opened this issue Jul 20, 2023 · 3 comments
Labels
question Further information is requested

Comments

@TryBin03
Copy link

tdesign-mobile-vue 版本

1.0.0-rc.4

重现链接

https://github.com/TryBin03/tdesignMobileVuePopupDemo

重现步骤

进入grid-item问题页面,点击切换按钮

期望结果

渲染1,2,3 上方的icon显示为 🔢,🔢🔢,🔢🔢🔢

实际结果

显示1,2,3 上方icon显示为 👍,🪙,⭐

框架版本

No response

浏览器版本

No response

系统版本

No response

Node版本

No response

补充说明

No response

@github-actions
Copy link
Contributor

👋 @TryBin03,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@anlyyao
Copy link
Collaborator

anlyyao commented Jul 21, 2023

@TryBin03 看着像是没有检测数组变化导致 v-for 的组件内容不更新。你可以在v-for时,加个 key属性,key表示的属性变化时,会强制更新组件~

@anlyyao anlyyao added the question Further information is requested label Jul 21, 2023
@TryBin03
Copy link
Author

TryBin03 commented Jul 21, 2023

问题解决了确实是这个问题~多谢🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants