render: (h, params) => {
                            return h('div', [
                                h('Button', {
                                    props: {type: 'error', size: 'small'},
                                },[
                                    h('Poptip', {
                                        props: {
                                            confirm: true,
                                            transfer: true,
                                            placement: 'left-end',
                                            title: '确定要删除吗!',
                                            type: 'error',
                                            size: 'small',
                                            width: '300',

                                        },
                                        on: {
                                            'on-ok':  ()=>{
                                                this.$Message.info('点击了确定')
                                            },
                                            'on-cancel': function(){
                                                this.$Message.info('点击了取消')
                                            }
                                        }
                                    }, '删除')
                                ]),
                            ]);
                        }

 

效果

iview 在Table组件render 中使用Poptip组件 阿星小栈

 

相关文章:

  • 2021-08-23
  • 2021-07-04
  • 2021-07-18
  • 2022-12-23
  • 2021-06-12
  • 2022-12-23
  • 2021-07-30
猜你喜欢
  • 2021-12-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-27
  • 2021-08-09
相关资源
相似解决方案