1***@qq.com
1***@qq.com
  • 发布:2024-04-12 10:45
  • 更新:2024-06-19 10:34
  • 阅读:272

【报Bug】uni-list-item组件在钉钉小程序端不触发longpress事件

分类:uni-app

产品分类: uniapp/小程序/钉钉

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: win10教育版19044.2130

HBuilderX类型: 正式

HBuilderX版本号: 4.08

第三方开发者工具版本号: 支付宝最新小程序开发工具

基础库版本号: 最新

项目创建方式: HBuilderX

示例代码:
<uni-list border-full>  
                <uni-list-item v-for="(dev,index) in devList" :title="dev.sn" :note="'首次登录时间: ' + dev.firstLoginTime +  
                '\n最后登录时间: ' + dev.lastLoginTime" :rightText="dev.version?dev.version:''"   
                clickable showArrow :to="'/pages/cloud/detect/index/index?sn=' + dev.sn" @longpress="addWhitelist(dev)">  
                    <template v-slot:footer>  
                        <view class="list-item-right-box">  
                            <view style="margin-bottom: 5rpx;">  
                                <uni-badge :text="dev.onLineState?'在线':'离线'" :type="dev.onLineState?'primary':'warning'"></uni-badge>  
                                <uni-badge v-if="dev.hasExistBlackList" text="黑名单" custom-style="backgroundColor: #3a3a3a"></uni-badge>  
                            </view>  
                            <view style="margin-top: 5rpx;">{{dev.version?dev.version:''}}</view>  
                        </view>  
                    </template>  
                </uni-list-item>  
            </uni-list>

操作步骤:

使用uni-list-item绑定@longpress,按照教程文档编译运行成钉钉小程序运行。长按list列表

预期结果:

不触发绑定函数,没有打印函数中console的内容

实际结果:

与预期结果一致

bug描述:

使用uni-ui的uni-list-item组件,在组件上绑定@longpress事件。app、web移动端、微信小程序都能正确触发长按事件,但是在钉钉小程序端不能触发事件

2024-04-12 10:45 负责人:无 分享
已邀请:
1***@qq.com

1***@qq.com

我在app里也不能触发@longpress时间,请教一下怎么解决

要回复问题请先登录注册