<span slot="rowIndex" slot-scope="text, record, index">
<span>{
{
rowIndex(text, record, index) }}</span>
<img src="~@assets/fileimg/newActivity.png" alt="">
</span>
<script>
columns3: [
{
title: '序号',
width: 120,
align: 'left',
key: 'rowIndex',
dataIndex: 'rowIndex',
// customRender: (text, record, index) => `${index + 1}`,
scopedSlots: {
customRender: 'rowIndex' }
}]
</script>
Ant Design vue之table表格序号自增-添加图标
猜你喜欢
转载自blog.csdn.net/ccyolo/article/details/121516944
今日推荐
周排行