Skip to content

Commit 0c9c623

Browse files
authored
fix(element-ui): unexpected handling of components (#308)
1 parent 13c60c3 commit 0c9c623

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/resolvers/element-ui.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export function ElementUiResolver(options: ElementUiResolverOptions = {}): Compo
4646
return {
4747
type: 'component',
4848
resolve: (name: string) => {
49-
if (name.startsWith('El')) {
49+
if (/^El[A-Z]/.test(name)) {
5050
const compName = name.slice(2)
5151
const partialName = kebabCase(compName)
5252
if (partialName === 'collapse-transition') {

0 commit comments

Comments
 (0)