在Ant design Table組件的columns數據裏做Render點擊事件的操作
{ title: '操作', dataIndex: 'operation', key: 'operation', render: (text,record,index) => { return ( <div> <a style={{marginRight: 10}} onClick={() => {this.showCreateModal(record.identity_no)}}>編輯</a> <a onClick={() => {this.showDelUserModal(record.identity_no)}}>刪除</a> </div> ) } }