添加首字母小写方法 增加自动填充按键

This commit is contained in:
QM303176530
2020-12-06 16:23:43 +08:00
parent 4030cd325c
commit cab8de721f
2 changed files with 16 additions and 15 deletions

View File

@@ -7,6 +7,14 @@ export const toUpperCase = (str) => {
}
}
export const toLowerCase = (str) => {
if (str[0]) {
return str.replace(str[0], str[0].toLowerCase())
} else {
return ""
}
}
// 驼峰转换下划线
export const toSQLLine = (str) => {
if (str == "ID") return "ID"