iview的table中点击Icon弹Poptip,render函数的写法


            render: (h, params) => {
              return h('div', [
                          h('div', [ h('Poptip', { props: { confirm: true, transfer: true, placement: 'left-start', title: '确定要删除吗!', type: 'error', size: 'small', width: '300', vModel: true }, on: { 'on-ok': ()=>{ this.$Message.info('点击了确定') }, 'on-cancel': ()=>{ this.$Message.info('点击了取消') } } }, [ h('Icon',{ props: { type: 'ios-gear', size:18 } }) ]) ]), ]); }
 

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM