Skip to content

[Swiper] 设置current无效,且会显示最后一张图,再瞬间显示第一张图 #1199

@SheepYang1993

Description

@SheepYang1993

tdesign-miniprogram 版本

0.28.0

重现链接

No response

重现步骤

<t-swiper autoplay="{{false}}" current="{{currentIndex}}" direction="vertical" height="{{screenHeight}}" wx:if="{{showSwiper}}" loop="{{true}}">
    <t-swiper-item wx:for="{{urls}}" wx:key="index">
        <view class="center-img-parent" style='height:{{screenHeight}}rpx'>
            <image class="center-img" src="{{url}}" mode="aspectFill" show-menu-by-longpress="{{true}}" bindtap="previewImage"></image>
        </view>
    </t-swiper-item>
</t-swiper>

期望结果

能正常展示current的图

实际结果

No response

框架版本

No response

浏览器版本

No response

系统版本

No response

Node版本

No response

补充说明

No response

Metadata

Metadata

Assignees

Labels

🏃 in progressissue or pull request is in progress🐞 bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions