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

+7
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)