IT常识
技术 Python PHP JavaScript IOS Android Java 数据库 资源 公众号 代码片段 github
  • IT常识
  • 技术

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

Posted 2020-11-01 tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了iview 在Table组件render 中使用Poptip组件 阿星小栈相关的知识,希望对你有一定的参考价值。

 

            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组件 阿星小栈的主要内容,如果未能解决你的问题,请参考以下文章

(c)2006-2024 SYSTEM All Rights Reserved IT常识