Last active
July 16, 2024 07:49
-
-
Save dearmark/60d377c6abdfb57725f5d27132d1e09e to your computer and use it in GitHub Desktop.
columns多语言转化
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function printC(list, flag) { | |
let columns = {}; | |
let columnsI = []; | |
list.map((item) => { | |
columns[item.dataIndex] = item.title; | |
item.title = `t('${flag}.${item.dataIndex}')`; | |
}); | |
console.log(columns); | |
console.log(list); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment