We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 365b67e commit 6978c54Copy full SHA for 6978c54
src/core/resolvers/tdesign.ts
@@ -55,10 +55,15 @@ export function TDesignResolver(options: TDesignResolverOptions = {}): Component
55
56
if (name.match(/^T[A-Z]/) || pluginList.includes(name)) {
57
const importName = name.match(/^T[A-Z]/) ? name.slice(1) : name
58
+ let libraryFrom =`tdesign-${library}${importFrom}`
59
60
+ if(library === 'vue-next' && importName.startsWith('Chat')) {
61
+ libraryFrom = `@tdesign-vue-next/chat${importFrom}`
62
+ }
63
+
64
return {
65
name: importName,
- from: `tdesign-${library}${importFrom}`,
66
+ from: libraryFrom,
67
}
68
69
},
0 commit comments