diff --git a/src/components/index.ts b/src/components/index.ts index 3aa23a6..89606ba 100644 --- a/src/components/index.ts +++ b/src/components/index.ts @@ -7,7 +7,7 @@ function getName(key: string) { } Object.entries(components).forEach(([key, value]) => { - exportable[getName(key)] = value.default + exportable[value.name ? value.name : getName(key)] = value.default }) export default exportable