Browse Source

feat: aotu import

xingyuv 2 years ago
parent
commit
7fea89f5f9
3 changed files with 6 additions and 4 deletions
  1. 1 1
      build/vite/index.ts
  2. 4 2
      src/types/auto-components.d.ts
  3. 1 1
      src/types/auto-imports.d.ts

+ 1 - 1
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

+ 4 - 2
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'
 

+ 1 - 1
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'
 }