1. 程式人生 > >iview的table中點擊Icon彈Poptip,render函數的寫法

iview的table中點擊Icon彈Poptip,render函數的寫法

view confirm prop ops his ESS del star ror

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 } }) ]) ]), ]); }

iview的table中點擊Icon彈Poptip,render函數的寫法