zhb 11 месяцев назад
Родитель
Сommit
6fff883fab
4 измененных файлов с 11 добавлено и 0 удалено
  1. 2 0
      .eslintrc-auto-import.json
  2. 1 0
      package.json
  3. 5 0
      src/auto-imports.d.ts
  4. 3 0
      src/components.d.ts

+ 2 - 0
.eslintrc-auto-import.json

@@ -118,6 +118,7 @@
     "resolveRef": true,
     "resolveUnref": true,
     "routerKey": true,
+    "setAppRef": true,
     "shallowReactive": true,
     "shallowReadonly": true,
     "shallowRef": true,
@@ -154,6 +155,7 @@
     "updateParentKey": true,
     "useActiveElement": true,
     "useAnimate": true,
+    "useApp": true,
     "useArrayDifference": true,
     "useArrayEvery": true,
     "useArrayFilter": true,

+ 1 - 0
package.json

@@ -52,6 +52,7 @@
     "@vue-macros/volar": "^3.0.0-beta.12",
     "cross-env": "^7.0.3",
     "eslint": "^9.26.0",
+    "eslint-plugin-format": "^1.0.1",
     "lint-staged": "^16.0.0",
     "mockjs": "^1.1.0",
     "postcss": "^8.5.3",

+ 5 - 0
src/auto-imports.d.ts

@@ -104,10 +104,12 @@ declare global {
   const refDefault: typeof import('@vueuse/core')['refDefault']
   const refThrottled: typeof import('@vueuse/core')['refThrottled']
   const refWithControl: typeof import('@vueuse/core')['refWithControl']
+  const rememberPassword: typeof import('./composables/config')['rememberPassword']
   const resolveComponent: typeof import('vue')['resolveComponent']
   const resolveRef: typeof import('@vueuse/core')['resolveRef']
   const resolveUnref: typeof import('@vueuse/core')['resolveUnref']
   const routerKey: typeof import('./composables/provide')['routerKey']
+  const setAppRef: typeof import('./composables/useApp')['setAppRef']
   const shallowReactive: typeof import('vue')['shallowReactive']
   const shallowReadonly: typeof import('vue')['shallowReadonly']
   const shallowRef: typeof import('vue')['shallowRef']
@@ -144,6 +146,7 @@ declare global {
   const updateParentKey: typeof import('./composables/provide')['updateParentKey']
   const useActiveElement: typeof import('@vueuse/core')['useActiveElement']
   const useAnimate: typeof import('@vueuse/core')['useAnimate']
+  const useApp: typeof import('./composables/useApp')['useApp']
   const useArrayDifference: typeof import('@vueuse/core')['useArrayDifference']
   const useArrayEvery: typeof import('@vueuse/core')['useArrayEvery']
   const useArrayFilter: typeof import('@vueuse/core')['useArrayFilter']
@@ -455,6 +458,7 @@ declare module 'vue' {
     readonly resolveRef: UnwrapRef<typeof import('@vueuse/core')['resolveRef']>
     readonly resolveUnref: UnwrapRef<typeof import('@vueuse/core')['resolveUnref']>
     readonly routerKey: UnwrapRef<typeof import('./composables/provide')['routerKey']>
+    readonly setAppRef: UnwrapRef<typeof import('./composables/useApp')['setAppRef']>
     readonly shallowReactive: UnwrapRef<typeof import('vue')['shallowReactive']>
     readonly shallowReadonly: UnwrapRef<typeof import('vue')['shallowReadonly']>
     readonly shallowRef: UnwrapRef<typeof import('vue')['shallowRef']>
@@ -491,6 +495,7 @@ declare module 'vue' {
     readonly updateParentKey: UnwrapRef<typeof import('./composables/provide')['updateParentKey']>
     readonly useActiveElement: UnwrapRef<typeof import('@vueuse/core')['useActiveElement']>
     readonly useAnimate: UnwrapRef<typeof import('@vueuse/core')['useAnimate']>
+    readonly useApp: UnwrapRef<typeof import('./composables/useApp')['useApp']>
     readonly useArrayDifference: UnwrapRef<typeof import('@vueuse/core')['useArrayDifference']>
     readonly useArrayEvery: UnwrapRef<typeof import('@vueuse/core')['useArrayEvery']>
     readonly useArrayFilter: UnwrapRef<typeof import('@vueuse/core')['useArrayFilter']>

+ 3 - 0
src/components.d.ts

@@ -20,6 +20,7 @@ declare module 'vue' {
     SelectCard: typeof import('./views/select-card.vue')['default']
     ULoadmore: typeof import('./components/u-loadmore.vue')['default']
     VanButton: typeof import('vant/es')['Button']
+    VanCalendar: typeof import('vant/es')['Calendar']
     VanCell: typeof import('vant/es')['Cell']
     VanCellGroup: typeof import('vant/es')['CellGroup']
     VanCheckbox: typeof import('vant/es')['Checkbox']
@@ -28,6 +29,7 @@ declare module 'vue' {
     VanDropdownItem: typeof import('vant/es')['DropdownItem']
     VanDropdownMenu: typeof import('vant/es')['DropdownMenu']
     VanField: typeof import('vant/es')['Field']
+    VanForm: typeof import('vant/es')['Form']
     VanGrid: typeof import('vant/es')['Grid']
     VanGridItem: typeof import('vant/es')['GridItem']
     VanIcon: typeof import('vant/es')['Icon']
@@ -46,5 +48,6 @@ declare module 'vue' {
     VanTabbar: typeof import('vant/es')['Tabbar']
     VanTabbarItem: typeof import('vant/es')['TabbarItem']
     VanTabs: typeof import('vant/es')['Tabs']
+    VanUploader: typeof import('vant/es')['Uploader']
   }
 }