MCPcopy Create free account
hub / github.com/baiwumm/react-admin / renderColumnsStateMap

Function renderColumnsStateMap

Xmw_web/src/utils/index.ts:218–226  ·  view source on GitHub ↗
(MENU_CFG: string[] = [])

Source from the content-addressed store, hash-verified

216 * @author: 白雾茫茫丶
217 */
218export const renderColumnsStateMap = (MENU_CFG: string[] = []) => {
219 const result: Record<string, ColumnsState> = {}
220 MENU_CFG.forEach((ele) => {
221 result[ele] = {
222 show: false,
223 }
224 })
225 return result
226}
227
228/**
229 * @description: Tag 标签随机颜色

Callers 2

TableTemplateFunction · 0.90
TableTemplateFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected