zjh7110 2022-05-24 09:20 采纳率: 59.1%
浏览 287
已结题

怎么在表格哪里设置双击事件,@row-dblclick ,打开Detail这个子组件,组件的h5部分是用JS写的

img

img


<Detail :info="detailInfo" :show.sync="dialog.detailDialogStatus" size="small" @refesh_list="index">

  • 写回答

1条回答 默认 最新

  • 你好!机器人 2022-05-24 09:40
    关注
    <Detail :info="detailInfo" ref="detailRef" :show.sync="dialog.detailDialogStatus" size="small" @refesh_list="index">
    @row-dblclick="openDetail"
    openDetail(){
      dialog.detailDialogStatus = true
      this.$refs.detailRef.open()
    }
    
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论 编辑记录

报告相同问题?

问题事件

  • 系统已结题 4月9日
  • 已采纳回答 4月1日
  • 创建了问题 5月24日