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组件中加入超链接组件,可编辑组件,选择组件,日期组件