[图片]
使用TDesign组件库的左右滑动(SwipeCell)组件无法正常左右滑动?模拟器效果: [图片] 实机: [图片] 无法通过滑动实现展开按钮的功能 请问各位要如何怎么解决这个问题呢? wxss: /* pages/admin/class/index.wxss */ .search { background-color: var(--bg-color-demo); padding: 16rpx 32rpx; } .btn { display: inline-flex; justify-content: center; align-items: center; width: 120rpx; height: 100%; color: white; } .favor-btn { background-color: var(--td-brand-color, #0052d9); } .delete-btn { background-color: #e34d59; } .body { overflow-y:auto !important; overflow-x:hidden !important; width: max-content; } wxml: <!--pages/admin/class/index.wxml--> <t-message id="t-message" /> <view class="head"> <!-- 搜索 --> <view class="search"> <t-search value="{{searchValue}}" placeholder="搜索班级" action="搜索" bind:action-click="searchAction" bind:change="searchChange" /> </view> </view> <scroll-view class="body"> <!-- <view wx:for="{{classList}}" wx:key="cls_id"> <t-swipe-cell right="{{right}}" left="{{left}}" id="{{item.cls_id}}" disableed="True" bind:click="onActionClick"> <t-cell title="{{item.label}}" note="{{item.cls_id}} | {{item.cls_admin}} | {{item.cls_admin_username}}" bordered="{{false}}" t-class="swipe-cell" /> </t-swipe-cell> </view> --> <t-swipe-cell right="{{right}}" left="{{left}}" bind:click="onActionClick"> <t-cell title="左右滑操作" note="辅助信息" bordered="{{false}}" /> </t-swipe-cell> <!-- 添加按钮 start--> <t-fab icon="add" bind:click="addClass" aria-label="增加"></t-fab> <!--添加按钮end --> <t-divider content="这里是底线" /> </scroll-view> <view class="footer"> <t-footer text="Copyright © 2024-2042 Hui_. All Rights Reserved."></t-footer> </view>
07-18