您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

vue iview组件表格 render函数的使用方法详解

2024/3/14 2:21:24发布178次查看
下面我就为大家分享一篇vue iview组件表格 render函数的使用方法详解,具有很好的参考价值,希望对大家有所帮助。
如果要在标签中加入属性,例如img 中src属性   a标签中href属性  此时需要用到
attrs 来加入而不是props
{ title: '操作', key: 'action', align: 'center', render: function (h, params) { return h('p', [ h('button', { props: { type: 'primary', size: 'small' }, style: { marginright: '8px' }, on: { click: function () { mcheck.singleshow(params.row); } } }, '查看'), h('button', { props: { type: 'error', size: 'small' }, on: { click: function () { mcheck.singledel(params.row, params.index); } } }, '删除') ]); } }
上面是我整理给大家的,希望今后会对大家有帮助。
相关文章:
javascript代码实现txt文件的上传预览功能
angular使用操作事件指令ng-click传多个参数示例
angular使用过滤器uppercase/lowercase实现字母大小写转换功能示例
以上就是vue iview组件表格 render函数的使用方法详解的详细内容。
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product