Recode old code

This commit is contained in:
2023-10-14 23:20:25 +08:00
parent 8b5880fab5
commit 7f709ac341
4 changed files with 27 additions and 27 deletions

View File

@@ -1,4 +1,4 @@
export function kebabCase(key: string): string {
export const kebabCase = (key: string) => {
const result: string = key.replace(/([A-Z])/g, ' $1').trim()
return result.split(' ').join('-').toLowerCase()
}
@@ -395,7 +395,7 @@ const isAntd = (compName: string): boolean => {
return antdNames.has(compName)
}
export function AntDesignResolver(options: AntDesignResolverOptions = {}): ComponentResolver {
export const AntDesignResolver = (options: AntDesignResolverOptions = {}): ComponentResolver => {
return {
type: 'component',
resolve: (name: string) => {