美文网首页
antd-vue 表格序号自增

antd-vue 表格序号自增

作者: zhang_sir_ | 来源:发表于2020-04-24 13:14 被阅读0次

    columns: [

                {

                    filterMultiple:false,

                    title: '编号',

                    width:60,

                    align:"center",

                    customRender:(t,r,index)=> {

                        return parseInt(`${(this.ipagination.current-1)*this.limit + (index+1)}`);

                    }

                },

              {

                title: '操作人',

                align: "center",

                width:200,

                dataIndex: 'operator',

              },

              {

                title: '操作日期',

                align: "center",

                width:200,

                dataIndex: 'operateDate',

              },

            ],

    页面效果:

    相关文章

      网友评论

          本文标题:antd-vue 表格序号自增

          本文链接:https://www.haomeiwen.com/subject/emvxwhtx.html