From 800de0a0ee26b1bf0bb6f62f5131c1647b3c77cc Mon Sep 17 00:00:00 2001 From: Simon He <57086651+Simon-He95@users.noreply.github.com> Date: Sun, 23 Jul 2023 13:48:53 +0800 Subject: [PATCH] feat: add vuetify --- src/ui/index.ts | 3 +++ src/ui/vuetify/index.ts | 1 + src/ui/vuetify/vuetify3/index.ts | 15 +++++++++++++++ src/utils.ts | 2 +- 4 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 src/ui/vuetify/index.ts create mode 100644 src/ui/vuetify/vuetify3/index.ts diff --git a/src/ui/index.ts b/src/ui/index.ts index 73169d2b..42d08ffb 100644 --- a/src/ui/index.ts +++ b/src/ui/index.ts @@ -5,6 +5,7 @@ import { vant4, vant4Components } from './vant' import { antDesignVue2, antDesignVue2Components, antDesignVue3, antDesignVue3Components, antDesignVue4, antDesignVue4Components } from './antDesignVue' import { varlet2, varlet2Components } from './varlet' import { naiveUi2, naiveUi2Components } from './naiveUi' +import { vuetify3, vuetify3Components } from './vuetify' export default { elementUi2, @@ -17,6 +18,7 @@ export default { antDesignVue3, antDesignVue2, varlet2, + vuetify3, elementUi2Components, antd4Components, antd5Components, @@ -27,4 +29,5 @@ export default { antDesignVue2Components, naiveUi2Components, varlet2Components, + vuetify3Components, } diff --git a/src/ui/vuetify/index.ts b/src/ui/vuetify/index.ts new file mode 100644 index 00000000..3e7894b8 --- /dev/null +++ b/src/ui/vuetify/index.ts @@ -0,0 +1 @@ +export * from './vuetify3' diff --git a/src/ui/vuetify/vuetify3/index.ts b/src/ui/vuetify/vuetify3/index.ts new file mode 100644 index 00000000..102740a7 --- /dev/null +++ b/src/ui/vuetify/vuetify3/index.ts @@ -0,0 +1,15 @@ +import { componentsReducer, propsReducer } from '../../utils' + +export function vuetify3() { + const map: any = [ + + ] + + return propsReducer(map) +} + +export function vuetify3Components() { + const map: any[] = [ + ] + return componentsReducer(map) +} diff --git a/src/utils.ts b/src/utils.ts index d999900e..a3f845c1 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -143,7 +143,7 @@ function jsxDfs(children: any, position: vscode.Position) { } } -const UINames = ['element-ui', 'element-plus', 'antd', 'ant-design-vue', '@varlet/ui', 'vant', 'naive-ui'] +const UINames = ['element-ui', 'element-plus', 'antd', 'ant-design-vue', '@varlet/ui', 'vant', 'naive-ui', 'vuetify'] export async function findPkgUI(cwd?: string) { if (!cwd) return