iview table内渲染proptip组件

Posted web-zqk

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了iview table内渲染proptip组件相关的知识,希望对你有一定的参考价值。

渲染proptip组件
columns: [{
        title: ‘产品图‘,
        key: ‘pic‘,
        sortable: true,
        render: function(h, para){
            return h(‘div‘, [
                h(‘Button‘, [
                    h(‘Poptip‘, {
                        props: {
                            confirm: true,
                            title: ‘确定要删除吗!‘,
                            type: ‘error‘,
                            size: ‘small‘
                        },
                        on: {
                            ‘on-ok‘: function(){
                                alert(‘删除按钮,没效果‘)
                            },
                            ‘on-cancel‘: function(){
                                alert(‘取消按钮,没效果‘)
                            }
                        }
                    }, ‘删除‘)
                ])
            ]);
        }
    }]
h(‘div‘, [
h(‘Poptip‘,{
props:{
title:‘复制成功!‘
}
},[
h(‘Button‘,{
props:{
icon:"md-copy",
size:‘small‘,
},
style:{
lineHeight:‘27px‘,
marginLeft:‘2px‘,
float:‘left‘
},
})
]),

])



















以上是关于iview table内渲染proptip组件的主要内容,如果未能解决你的问题,请参考以下文章

iview table行render渲染不同的组件

iview-form内table修改字段效验

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

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

iview库修改table组件首次加载样式错乱

Vue+IView使用过程中使用Table组件Render不生效问题