> 文档中心 > Ant Design Pro 中 ProTable受控菜单 class类 与 构造函数

Ant Design Pro 中 ProTable受控菜单 class类 与 构造函数

// class 类 state = {    // 列表受控模式    columnsStateMap: {      btId: { show: false }, // 需要受控的字段名(btId)    },  };// 在组件中 this.setState({ columnsStateMap: map })} />
// 在构造函数中// 列表受控模式    const [columnsStateMap, setColumnsStateMap] = useState({ publicKey: { // 需要受控的字段(publicKey)     show: false, },    });// 在组件中

 

Ant Design Pro 中 ProTable受控菜单 class类 与 构造函数 创作打卡挑战赛 Ant Design Pro 中 ProTable受控菜单 class类 与 构造函数 赢取流量/现金/CSDN周边激励大奖多事通报价网