attrs: {
icon: 'locked'
}
添加属性
render: (h, params) => {
return h(
'div', { // 父div
style: {
display: 'flex',
'align-items': 'center'
}
}, [ h('span', {
props: {
type: 'primary',
size: 'small'
},
style: {
flex: 'none',
width: '40%',
'white-space': 'nowrap'
},
on: {
click: () => {}
}
},
params.row.remarks
),
h('Button', {
props: {
type: 'primary',
size: 'small'
},
style: { },
on: {
click: () => {
this.show(params.index);
}
}
}, '修改序号')
]
);
}
你尚未登录,无法进行回复。