We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9e0e23 commit 3789e21Copy full SHA for 3789e21
packages/core/src/resolvers/tdesign-uniapp.ts
@@ -25,16 +25,12 @@ export function TDesignUniappResolver(
25
if (name.match(/^T[A-Z]/)) {
26
const pureName = name.slice(1)
27
const partialName = pureName === 'QRCode' ? 'qrcode' : kebabCase(pureName)
28
- if (isChat(name)) {
29
- return {
30
- name,
31
- from: `@tdesign/uniapp-chat/${partialName}/${partialName}.vue`,
32
- }
33
+ const packagesName = isChat(name) ? 'uniapp-chat' : 'uniapp'
34
35
return {
36
name,
37
- from: `@tdesign/uniapp/${partialName}/${partialName}.vue`,
+ from: `@tdesign/${packagesName}/${partialName}/${partialName}.vue`,
+ sideEffects: '@tdesign/uniapp/common/style/theme/index.less',
38
}
39
40
},
0 commit comments