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

[SwipeCell] 不能响应左滑 #1728

Closed
JQiue opened this issue Mar 7, 2023 · 8 comments · Fixed by #2283
Closed

[SwipeCell] 不能响应左滑 #1728

JQiue opened this issue Mar 7, 2023 · 8 comments · Fixed by #2283
Assignees
Labels
question This is a question, not a bug

Comments

@JQiue
Copy link

JQiue commented Mar 7, 2023

tdesign-miniprogram 版本

1.0.1

重现链接

No response

重现步骤

第一个view 可以响应,第二个不能响应

<t-tabs defaultValue="{{recycleTab}}" bind:change="onRecycleTabChange" t-class="custom-tabs" sticky="{{true}}" swipeable="{{false}}">
  <t-tab-panel label="任务" value="任务"></t-tab-panel>
  <t-tab-panel label="欲望" value="欲望"></t-tab-panel>
</t-tabs>
<view hidden="{{recycleTab != '任务'}}">
  <t-swipe-cell wx:for="{{tasks}}" wx:key="id">
    <t-cell title="{{item.content}}" bordered="{{false}}" note="左滑进行操作" />
    <view slot="right" class="btn delete-btn" data-task="{{item}}" bind:tap="handleRestoreTask">
      还原
    </view>
    <view slot="right" class="btn delete-btn" data-task="{{item}}" bind:tap="handleDeleteTask">
      删除
    </view>
  </t-swipe-cell>
</view>
<view hidden="{{recycleTab != '欲望'}}">
  <t-swipe-cell wx:for="{{desires}}" wx:key="id">
    <t-cell title="{{item.content}}" bordered="{{false}}" note="左滑进行操作" />
    <view slot="right" class="btn delete-btn" data-desire="{{item}}" bind:tap="handleRestoreDesire">
      还原
    </view>
    <view slot="right" class="btn delete-btn" data-desire="{{item}}" bind:tap="handleDeleteDesire">
      删除
    </view>
  </t-swipe-cell>
</view>

期望结果

No response

实际结果

No response

框架版本

No response

基础库版本

2.30.2

补充说明

No response

@github-actions
Copy link
Contributor

github-actions bot commented Mar 7, 2023

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

@JQiue JQiue changed the title [SwipeCell ] 不能响应左滑 [SwipeCell] 不能响应左滑 Mar 7, 2023
@anlyyao
Copy link
Collaborator

anlyyao commented Mar 7, 2023

@JQiue 收到反馈,我今天看看~

@anlyyao anlyyao self-assigned this Mar 7, 2023
@anlyyao
Copy link
Collaborator

anlyyao commented Mar 7, 2023

@JQiue 感觉是你使用的问题,方便提供一下你的 js部分代码吗

@anlyyao anlyyao added the question This is a question, not a bug label Mar 7, 2023
@JQiue
Copy link
Author

JQiue commented Mar 12, 2023

这是我提供的代码片段 https://developers.weixin.qq.com/s/9Y3g9Fm17PGf @anlyyao

@Logosww
Copy link

Logosww commented Apr 20, 2023

我也有同样的问题,题主最后解决了吗?

@JQiue
Copy link
Author

JQiue commented Apr 23, 2023

我也有同样的问题,题主最后解决了吗?

换方案,这个它们没有修

@anlyyao
Copy link
Collaborator

anlyyao commented May 6, 2023

@JQiue hidden 改用 wx:if 呢~

@JQiue
Copy link
Author

JQiue commented May 6, 2023

是的 我看到了。所以着急的话, 建议hidden改用 wx:if, 组件层面我今天看看呢,尽快处理~

@JQiue hidden 改用 wx:if 呢~

我有发代码片段

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question This is a question, not a bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants