SOURCE

// 方法
const columnRender = labelObj => (value, record) => labelObj[value]
const applyType = {
  NEW: '00', // 新增
  ALTER: '01', // 变更
}
const applyTypeLabels = {
  [applyType.NEW]: '新增',
  [applyType.ALTER]: '变更',
}
const aaa = columnRender(applyTypeLabels)
console.log(aaa('00'))
console 命令行工具 X clear

                    
>
console