Skip to content

Commit

Permalink
fix(element-ui): unexpected handling of components (#308)
Browse files Browse the repository at this point in the history
  • Loading branch information
CyanSalt authored Feb 15, 2022
1 parent 13c60c3 commit 0c9c623
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/resolvers/element-ui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export function ElementUiResolver(options: ElementUiResolverOptions = {}): Compo
return {
type: 'component',
resolve: (name: string) => {
if (name.startsWith('El')) {
if (/^El[A-Z]/.test(name)) {
const compName = name.slice(2)
const partialName = kebabCase(compName)
if (partialName === 'collapse-transition') {
Expand Down

0 comments on commit 0c9c623

Please sign in to comment.