Skip to content

Commit

Permalink
feat: add vuetify resolver (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinussuherman authored Mar 14, 2021
1 parent f6760e9 commit 526a88d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/resolvers/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export * from './antdv'
export * from './element-plus'
export * from './vant'
export * from './vuetify'
11 changes: 11 additions & 0 deletions src/resolvers/vuetify.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { ComponentResolver } from '../types'

/**
* Resolver for Vuetify
*
* @link https://github.com/vuetifyjs/vuetify
*/
export const VuetifyResolver = (): ComponentResolver => (name: string) => {
if (name.match(/^V[A-Z]/))
return { importName: name, path: 'vuetify/lib' }
}

0 comments on commit 526a88d

Please sign in to comment.