iview 使用table中设置type:html后,render好像就失效了,无法调用单击事件

title: itemDate,

            key: itemDate,
            type:'html',
            align: 'center',
            
            render:(h,params)=>{
                return h('div', {
                        props: {
                            type: 'primary',
                            
                        },
                        
                        style: {
                            height:'48px',
                            width:'141px',
                            
                        },
                        on: {
                            click: () => {
                                self.cellClick(params.column.key,params.row.equipmentInformationId);
                                console.info('params.row',params.row)
                            }
                        }
                    }, params.row[itemDate])
            }
阅读 4.4k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题