feat(ConfigProvider): add icon-prefix prop (#8986)

This commit is contained in:
neverland
2021-07-06 17:24:22 +08:00
committed by GitHub
parent b5ea1cd3ad
commit 2a74d88c91
9 changed files with 89 additions and 41 deletions
+7
View File
@@ -4,6 +4,13 @@ export function camelize(str: string): string {
return str.replace(camelizeRE, (_, c) => c.toUpperCase());
}
export function kebabCase(str: string) {
return str
.replace(/([A-Z])/g, '-$1')
.toLowerCase()
.replace(/^-/, '');
}
export function padZero(num: number | string, targetLength = 2): string {
let str = num + '';