From 7fea89f5f9521fee13ba8680307df8da782f3396 Mon Sep 17 00:00:00 2001 From: xingyuv Date: Tue, 7 Mar 2023 10:05:45 +0800 Subject: [PATCH] feat: aotu import --- build/vite/index.ts | 2 +- src/types/auto-components.d.ts | 6 ++++-- src/types/auto-imports.d.ts | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/build/vite/index.ts b/build/vite/index.ts index 717db992..a208c09c 100644 --- a/build/vite/index.ts +++ b/build/vite/index.ts @@ -27,7 +27,7 @@ export function createVitePlugins(VITE_APP_TITLE: string) { progress(), PurgeIcons(), vueSetupExtend(), - ElementPlus(), + ElementPlus({}), AutoImport({ include: [ /\.[tj]sx?$/, // .ts, .tsx, .js, .jsx diff --git a/src/types/auto-components.d.ts b/src/types/auto-components.d.ts index cbf6d856..5f1509a1 100644 --- a/src/types/auto-components.d.ts +++ b/src/types/auto-components.d.ts @@ -1,5 +1,7 @@ -// generated by unplugin-vue-components -// We suggest you to commit this file into source control +/* eslint-disable */ +/* prettier-ignore */ +// @ts-nocheck +// Generated by unplugin-vue-components // Read more: https://github.com/vuejs/core/pull/3399 import '@vue/runtime-core' diff --git a/src/types/auto-imports.d.ts b/src/types/auto-imports.d.ts index bd749b8e..7c9f5ff1 100644 --- a/src/types/auto-imports.d.ts +++ b/src/types/auto-imports.d.ts @@ -70,5 +70,5 @@ declare global { // for type re-export declare global { // @ts-ignore - export type { Component,ComponentPublicInstance,ComputedRef,InjectionKey,PropType,Ref,VNode } from 'vue' + export type { Component, ComponentPublicInstance, ComputedRef, InjectionKey, PropType, Ref, VNode } from 'vue' }