diff --git a/src/resolvers/index.ts b/src/resolvers/index.ts index d8151563..6e4261e0 100644 --- a/src/resolvers/index.ts +++ b/src/resolvers/index.ts @@ -1,3 +1,4 @@ export * from './antdv' export * from './element-plus' export * from './vant' +export * from './vuetify' \ No newline at end of file diff --git a/src/resolvers/vuetify.ts b/src/resolvers/vuetify.ts new file mode 100644 index 00000000..2c7a2159 --- /dev/null +++ b/src/resolvers/vuetify.ts @@ -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' } +}