From 526a88d31c5d734ed7fb5765382326887fd96ffc Mon Sep 17 00:00:00 2001 From: Martinus Suherman Date: Sun, 14 Mar 2021 23:35:24 +0700 Subject: [PATCH] feat: add vuetify resolver (#32) --- src/resolvers/index.ts | 1 + src/resolvers/vuetify.ts | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 src/resolvers/vuetify.ts 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' } +}