SOURCE

function buildPickerOptions(labelObj) {
  return Object.keys(labelObj).map(k => ({
    label: labelObj[k],
    value: k,
  }))
}
const repayMethodLabels = {
  'S1': '腾讯',
  'S2': '阿里',
  'S3': '百度',
  'S4': '腾讯云',
  'S5': '百度云',
  'S9': '阿里云',
  'S10': '字节云',
}
const repayMethodOptions = buildPickerOptions(repayMethodLabels)

console.log(repayMethodOptions)
console 命令行工具 X clear

                    
>
console