Skip to content

Commit 75011ee

Browse files
authored
fix(element-ui): fix collapse-transition import (#170)
1 parent 669be0b commit 75011ee

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/core/resolvers/element-ui.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ export function ElementUiResolver(options: ElementUiResolverOptions = {}): Compo
4747
if (name.startsWith('El')) {
4848
const compName = name.slice(2)
4949
const partialName = kebabCase(compName)
50+
if (partialName === 'collapse-transition') {
51+
return {
52+
path: `element-ui/lib/transitions/${partialName}`,
53+
}
54+
}
5055
return {
5156
path: `element-ui/lib/${partialName}`,
5257
sideEffects: getSideEffects(partialName, options),

0 commit comments

Comments
 (0)