9***@qq.com
9***@qq.com
  • 发布:2023-05-05 10:51
  • 更新:2023-05-05 18:46
  • 阅读:254

【报Bug】uni-popup-dialog

分类:uni-app

产品分类: uniapp/App

PC开发环境操作系统: Mac

PC开发环境操作系统版本号: 版本12.3 (21E230) Apple M1 Max

HBuilderX类型: 正式

HBuilderX版本号: 3.8.1

手机系统: Android

手机系统版本号: Android 12

手机厂商: 小米

手机机型: 小米10

页面类型: vue

vue版本: vue3

打包方式: 云端

项目创建方式: HBuilderX

示例代码:
const openDialog = ()=>{  
            popup.value.open()  
        }  
        const confirm = ()=>{  
            debugger  
            thisCard.value.isActiveRow  
        }

操作步骤:

<uni-popup ref="popup" type="bottom" style="width:100%" @change="popupChange" >
<uni-popup-dialog style="width:100%"
type="info"
title="选择用户"
cancelText="关闭"
confirmText="选中"
@confirm="confirm"
@close="dialogClose"

预期结果:

进入断点

实际结果:

未进入断点

bug描述:

<uni-popup ref="popup" type="bottom" style="width:100%" @change="popupChange" >
<uni-popup-dialog style="width:100%"
type="info"
title="选择用户"
cancelText="关闭"
confirmText="选中"
@confirm="confirm"
@close="dialogClose"

dialogClose事件可以调用;confirm事件无论如何也不触发

2023-05-05 10:51 负责人:无 分享
已邀请:
YUANRJ

YUANRJ

未复现此问题,检查下你的代码逻辑。

9***@qq.com

9***@qq.com (作者)

<template>
<page-meta :page-style="'overflow:'+(show?'hidden':'visible')"></page-meta>
<uni-popup ref="popup" type="bottom" style="width:100%" @change="popupChange" @confirm="confirm" >

            <uni-popup-dialog style="width:100%"  
                type="info"  
                title="选择用户"   
                cancelText="关闭"   
                confirmText="选中"  
                @confirm="confirm"   
                @close="dialogClose"   
                :before-close="true"    
                >  

咱就讲真,为什么我只有在uni-popup和uni-popup-dialog都写@confirm="confirm" 它就好使了?

要回复问题请先登录注册