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

使用n-carousel的时候,无法展示具体的每一页的内容 #3078

Closed
casatwy opened this issue Jun 10, 2022 · 1 comment
Closed

使用n-carousel的时候,无法展示具体的每一页的内容 #3078

casatwy opened this issue Jun 10, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@casatwy
Copy link

casatwy commented Jun 10, 2022

TuSimple/naive-ui version (版本)

2.30.3

Vue version (Vue 版本)

3.2.37

Browser and its version (浏览器及其版本)

102.0.5005.61(正式版本) (x86_64)

System and its version (系统及其版本)

macOS(10.15.7)

Node version (Node 版本)

Reappearance link (重现链接)

https://www.naiveui.com/zh-CN/os-theme/components/carousel

Reappearance steps (重现步骤)

按照demo的默认写法使用

Expected results (期望的结果)

期望能看到图片

Actual results (实际的结果)

图片没有展示

Remarks (补充说明)

我使用的代码如下:

截屏2022-06-10 上午9 39 50

在浏览器上展示如下:

截屏2022-06-10 上午9 41 47

我打开调试工具发现宽度都为0:

截屏2022-06-10 上午9 39 10

@github-actions github-actions bot added the untriaged need to sort label Jun 10, 2022
@07akioni
Copy link
Collaborator

@nooooooom 看看这个?

@07akioni 07akioni added bug Something isn't working and removed untriaged need to sort labels Jun 10, 2022
nooooooom added a commit to nooooooom/naive-ui that referenced this issue Jul 5, 2022
07akioni pushed a commit that referenced this issue Jul 10, 2022
* fix(Carousel): #3078, #3106 and simple code

* fix(Carousel): fix slide level error on fade effect

* fix(Carousel): get exact size

* chore(Carousel): only use computed size when slides pre view multiple

* chore: reviewed

* chrome: revise demo

* fix(Carousel): fix the can not trigger touchstart on ios

* docs: changelog
@Sepush Sepush closed this as completed Jul 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants