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

在Nuxts中使用ant-design-vue的Carousel组件在页面刷新的时候会有拉长然后恢复正常的情况 #7042

Open
1 task done
1than opened this issue Oct 20, 2023 · 7 comments
Labels

Comments

@1than
Copy link

1than commented Oct 20, 2023

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

What problem does this feature solve?

Nuxtjs版本:3.8.0
@ant-design-vue/nuxt版本:1.1.2

What does the proposed API look like?

1

2

3

4

<style scoped> :deep(.slick-slide) { text-align: center; height: 160px; line-height: 160px; background: #364d79; overflow: hidden; } :deep(.slick-slide h3) { color: #fff; } </style>

以上是最简单的示例代码,我想应该是这个组件默认长度太长,当我自定义了长度之后在拉长之后又恢复到我定义的长度,虽然最终的页面样式是争取的,但是刷新之后拉长这一下太明显且影响体验了,期望得到大佬回复

@aibayanyu20
Copy link
Member

https://stackblitz.com/edit/github-52q5xr-ve5njf?file=README.md 可以基于这个给一个复现的例子

@csnan
Copy link

csnan commented Nov 7, 2023

使用 client-only 标签可以解决这种情况

Copy link

github-actions bot commented Jan 7, 2024

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

@github-actions github-actions bot added the Stale label Jan 7, 2024
@csnan
Copy link

csnan commented Jan 7, 2024 via email

@github-actions github-actions bot removed the Stale label Jan 8, 2024
Copy link

github-actions bot commented Mar 9, 2024

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

@github-actions github-actions bot added the Stale label Mar 9, 2024
@csnan
Copy link

csnan commented Mar 9, 2024 via email

@github-actions github-actions bot removed the Stale label Mar 10, 2024
Copy link

github-actions bot commented May 9, 2024

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

@github-actions github-actions bot added the Stale label May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants