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

Carousel component doesnt work with i18n and $t and ref #4259

Open
1 task
yehechuan opened this issue Jun 25, 2021 · 6 comments
Open
1 task

Carousel component doesnt work with i18n and $t and ref #4259

yehechuan opened this issue Jun 25, 2021 · 6 comments

Comments

@yehechuan
Copy link

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

2.2.0-beta.5

Environment

Vue 3.1 browse all

Reproduction link

https://2x.antdv.com/components/carousel-cn

Steps to reproduce

$t as props in Carousel component

What is expected?

When i18n switching,renew the content changes accordingly

What is actually happening?

i18n not work in Carousel component

@tangjinzhou tangjinzhou added the 🤔 Need Reproduce We cannot reproduce your problem label Jun 26, 2021
@github-actions
Copy link

Hello @yehechuan. Please provide a online reproduction by forking this link for vue2link for vue3 or a minimal GitHub repository. Make sure to choose the correct version.

你好 @yehechuan, 我们需要你提供一个在线的重现实例以便于我们帮你排查问题。你可以通过点击 此处 for vue2此处 for vue3 创建一个 codesandbox 或者提供一个最小化的 GitHub 仓库。请确保选择准确的版本。

@yehechuan
Copy link
Author

yehechuan commented Jun 26, 2021 via email

@tangjinzhou tangjinzhou removed the 🤔 Need Reproduce We cannot reproduce your problem label Jul 1, 2021
@tangjinzhou
Copy link
Member

临时方案:加个key https://codesandbox.io/s/fkw96?file=/src/App.vue

@yehechuan
Copy link
Author

yehechuan commented Jul 1, 2021 via email

@sinjie
Copy link

sinjie commented Aug 20, 2021

carousel 组建内部数据不会双向绑定,用方法formate数据的时候可以看得出来,函数进入数据已经改变,但是页面没有渲染,
原因: 轮播会复制多份dom(ul),只有其中一份(猜测原版)数据会双向绑定,而其他几份数据不会重新渲染

尝试过程: 在轮播到第二组数据时,截图发现数据是自己想要的,当移动完成后又变回原来的了

image

@yehechuan
Copy link
Author

yehechuan commented Aug 20, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants