How does AntD's Table dynamically hide / show certain columns?

how can I achieve an effect similar to that shown below?
ExtJS

bootstrapTable

May.11,2021

https://codesandbox.io/s/mq9r. you optimize it


the core idea is to dynamically control the changes of the columns array, our platform implements custom columns like this.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b374fe-2c09a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b374fe-2c09a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?