Skip to content

Commit 30bd3e4

Browse files
authored
fix(tdesign): fix a series of components related to typography (#813)
1 parent 6656ec5 commit 30bd3e4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/core/resolvers/tdesign.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,13 @@ export function TDesignResolver(options: TDesignResolverOptions = {}): Component
4646
}
4747
}
4848

49+
if (name.startsWith('TTypography') || name.startsWith('Typography')) {
50+
return {
51+
name: name.slice(name.startsWith('TTypography') ? 11 : 10),
52+
from: `tdesign-${library}${importFrom}`,
53+
}
54+
}
55+
4956
if (name.match(/^T[A-Z]/) || pluginList.includes(name)) {
5057
const importName = name.match(/^T[A-Z]/) ? name.slice(1) : name
5158

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy