|
|
|
@ -212,9 +212,11 @@ const addToChildren = (
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
const toCamelCase = (str: string, upperCaseFirst: boolean) => {
|
|
|
|
const toCamelCase = (str: string, upperCaseFirst: boolean) => {
|
|
|
|
str = (str || '').toLowerCase().replace(/-(.)/g, function (group1: string) {
|
|
|
|
str = (str || '')
|
|
|
|
return group1.toUpperCase()
|
|
|
|
.replace(/-(.)/g, function (group1: string) {
|
|
|
|
})
|
|
|
|
return group1.toUpperCase()
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
.replaceAll('-', '')
|
|
|
|
|
|
|
|
|
|
|
|
if (upperCaseFirst && str) {
|
|
|
|
if (upperCaseFirst && str) {
|
|
|
|
str = str.charAt(0).toUpperCase() + str.slice(1)
|
|
|
|
str = str.charAt(0).toUpperCase() + str.slice(1)
|
|
|
|
|