随手
{ title: '操作', key: 'action', width: 200, align: 'center', render: (h, params) => { return h('div', [ h('Poptip', { props: { transfer: true, placement: 'left-start', width: '300', trigger: 'click' }, }, [ h( 'Button', { props: { type: 'ghost', size: 'small' }, style: { marginRight: '5px' }, }, '查看箱内防伪码'), h('div', { slot: 'content', style: { maxHeight: '500px', overflowX: 'hidden', overflowY: 'auto' } }, [ h('table',{attrs: {class: 'interTable'}}, [h('thead', [h('tr', [h('th', '防伪码'), h('th', '操作')])]), h('tbody', [ params.row.code.map(v => { return h('tr', [h('td', v.code), h('td', [ h('Button', { props: { type: 'primary', size: 'small' }, on: { click: () => { this.watchCodeDetail(v.code) } } }, '查看详情') ])]) }) ] ) ]) ]) ]), h( 'Button', { props: { type: 'error', size: 'small' }, style: { marginRight: '5px' }, on: { click: () => { this.deleteCode(params.index, params.row.id) } } }, '删除') ]); } }