Skip to content

Commit 9329986

Browse files
committed
fix(tdesign): resolve chat component from @tdesign-vue-next/chat
1 parent 365b67e commit 9329986

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/core/resolvers/tdesign.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,15 @@ export function TDesignResolver(options: TDesignResolverOptions = {}): Component
5555

5656
if (name.match(/^T[A-Z]/) || pluginList.includes(name)) {
5757
const importName = name.match(/^T[A-Z]/) ? name.slice(1) : name
58+
let libraryForm =`tdesign-${library}${importFrom}`
5859

60+
if(library === 'vue-next' && importName.startsWith('Chat')) {
61+
libraryForm = `@tdesign-vue-next/chat${importFrom}`
62+
}
63+
5964
return {
6065
name: importName,
61-
from: `tdesign-${library}${importFrom}`,
66+
from: libraryForm,
6267
}
6368
}
6469
},

0 commit comments

Comments
 (0)