码迷,mamicode.com
首页 > 其他好文 > 详细

iview table内渲染proptip组件

时间:2018-09-05 19:49:32      阅读:167      评论:0      收藏:0      [点我收藏+]

标签:title   tip   cti   error   clear   ops   height   size   column   

渲染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组件

标签:title   tip   cti   error   clear   ops   height   size   column   

原文地址:https://www.cnblogs.com/web-zqk/p/9593762.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!