
columns里
{title: '操作', dataIndex: 'action', fixed: 'right', align: 'center', width: 120, scopedSlots: { customRender: 'action' } }
template里
<div slot="action" slot-scope="text,record">
<a @myEvent="refresh" @click="edit(record)">编辑</a>
slot里面的action对应customRender: 'action’就可以啦,第一次写,写的不对可以联系我哦

1364

被折叠的 条评论
为什么被折叠?



