Skip to content

Commit

Permalink
feat: kebab-case style component resolving (#331)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShenQingchuan authored Mar 19, 2022
1 parent e4e832c commit 76397dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/resolvers/naive-ui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export function NaiveUiResolver(): ComponentResolver {
return {
type: 'component',
resolve: (name: string) => {
if (name.match(/^N[A-Z]/))
if (name.match(/^(N[A-Z]|n-[a-z])/))
return { importName: name, path: 'naive-ui' }
},
}
Expand Down

0 comments on commit 76397dd

Please sign in to comment.