feat: SelectV2改造完成

This commit is contained in:
kailong321200875
2023-05-11 15:52:04 +08:00
parent cdc7c76eb5
commit 4d04734e13
7 changed files with 183 additions and 75 deletions

View File

@@ -108,3 +108,10 @@ export function toAnyString() {
})
return str
}
/**
* 首字母大写
*/
export function firstUpperCase(str: string) {
return str.toLowerCase().replace(/( |^)[a-z]/g, (L) => L.toUpperCase())
}