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

[Swiper] 关闭loop后表现不符合预期 #1724

Open
Erimus-Koo opened this issue Jan 14, 2025 · 1 comment
Open

[Swiper] 关闭loop后表现不符合预期 #1724

Erimus-Koo opened this issue Jan 14, 2025 · 1 comment

Comments

@Erimus-Koo
Copy link

tdesign-mobile-vue 版本

version: 1.7.0

重现链接

No response

重现步骤

<t-swiper :navigation="{ type: 'dots' }" :autoplay="false" :loop="false">
      <t-swiper-item
        v-for="(item, index) in [`#f33`, `#f90`, `#090`, `#06f`, `#f69`]"
        :key="index"
        style="height: 200px"
      >
        <div class="content" :style="`background:${item}`">{{ item }}</div>
      </t-swiper-item>
    </t-swiper>

期望结果

期望在非loop时,第一个往前划没东西,最后一个也不能往后滑。

实际结果

在:loop="false"时
第一往前滑会出现最后一个,然后闪一下变回第一个。
最后一个往后滑会出现第一个,然后闪一下再变回最后一个。
这个过程是不符合预期的

框架版本

[email protected]

浏览器版本

iOS Safari

系统版本

iOS 18.3

Node版本

v22.12.0

补充说明

No response

Copy link
Contributor

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

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

No branches or pull requests

1 participant