鍍金池/ 問答/HTML/ iview 使用table中設(shè)置type:html后,render好像就失效了,

iview 使用table中設(shè)置type:html后,render好像就失效了,無法調(diào)用單擊事件

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])
            }
回答
編輯回答
別逞強(qiáng)

click:

2017年1月30日 15:41