IVIEW 的 Render
作者:互联网
1 render: (h, params) => { 2 let isconfirm = params.row.isconfirm; 3 if (!isconfirm) { 4 return h('span', { 5 style: { 6 color: 'red' 7 } 8 }, "暂存"); 9 } else { 10 return h('span', "生效"); 11 } 12 }
2、新增/编辑/删除/
render: (h, params) => { return h('div', [ h('Button', { on: { click: () => { this.handleEdit(params.row) } }, props: { type: 'primary', size: 'small' }, style: { marginRight: '5px' }, }, '编辑'), h('Button', { on: { click: () => { this.modalDel = true, this.params = params } }, props: { type: 'error', size: 'small' }, }, '删除') ]); //end return }
标签:return,Render,render,isconfirm,params,row,click,IVIEW 来源: https://www.cnblogs.com/songsong003/p/15718305.html