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.

Menu