Current location - Loan Platform Complete Network - Big data management - How to make a column of data not displayed in antd table?
How to make a column of data not displayed in antd table?
Constant column = [

{

? Title:' id',

? Data index: "id",

? Key: "id",

? colSpan:0,

? render:()= & gt; { return { props:{ colSpan:0 } }; }

},

{

? Title: "Operation",

? Keys: "Action",

? render: (text: any,record:any)= & gt; (

& ltSpace size="middle " >

? & ltbutton onClick = {()= & gt; {Edit Lecture (Record}}> Modify

? & ltpopConfirmationTitle = "Are you sure you want to delete this lesson?" OK text = " OK " Cancel text = " Cancel " on confirm = {()= & gt; { delete presentation(record)} } & gt; & ltButton & gt delete

& lt/Space & gt;

? ),

},

? ];

Key points: colSpan:0, render: () = > { return { props:{ colSpan:0 } }; }