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

VUE -- iview table 组件 中使用 upload组件 上传组件 on render 事件不会触发问题

iview table行render渲染不同的组件

IView 使用Table组件时实现给某一列添加click事件

iview table+page组件筛选数据渲染

在 iView 的组件中使用 Render 函数渲染内容,可以通过设置 class 属性来自定义样式

iview的table组件中加入超链接组件,可编辑组件,选择组件,日期组件

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