Browse Source

更新依赖包

tongshangming 6 months ago
parent
commit
905fa38fea
7 changed files with 481 additions and 270 deletions
  1. 18 18
      package.json
  2. 440 241
      pnpm-lock.yaml
  3. 3 2
      src/App.vue
  4. 10 1
      src/auto-import.d.ts
  5. 7 6
      src/components/FsTitle.vue
  6. 1 1
      src/views/Home.vue
  7. 2 1
      tsconfig.json

+ 18 - 18
package.json

@@ -10,36 +10,36 @@
   },
   "dependencies": {
     "@kjgl77/datav-vue3": "^1.7.4",
-    "@vueuse/core": "^10.11.0",
+    "@vueuse/core": "^13.2.0",
     "autofit.js": "^3.2.8",
-    "axios": "^1.7.2",
-    "dayjs": "^1.11.11",
-    "echarts": "^5.5.0",
+    "axios": "^1.9.0",
+    "dayjs": "^1.11.13",
+    "echarts": "^5.6.0",
     "element-plus": "^2.9.10",
     "normalize.css": "^8.0.1",
     "nprogress": "^0.2.0",
-    "pinia": "^2.1.7",
-    "vue": "^3.4.30",
-    "vue-router": "^4.4.0"
+    "pinia": "^2.3.1",
+    "vue": "^3.5.14",
+    "vue-router": "^4.5.1"
   },
   "devDependencies": {
-    "@tsconfig/node20": "^20.1.4",
-    "@types/node": "^20.14.8",
+    "@tsconfig/node20": "^20.1.5",
+    "@types/node": "^20.17.47",
     "@types/nprogress": "^0.2.3",
-    "@vitejs/plugin-vue": "^5.0.5",
+    "@vitejs/plugin-vue": "^5.2.4",
     "@vue/eslint-config-prettier": "^8.0.0",
     "@vue/eslint-config-typescript": "^12.0.0",
     "@vue/tsconfig": "^0.4.0",
-    "eslint": "^8.57.0",
-    "eslint-plugin-vue": "^9.26.0",
-    "prettier": "^3.3.2",
-    "sass": "^1.77.6",
-    "typescript": "^5.5.2",
-    "unocss": "^0.61.0",
+    "eslint": "^8.57.1",
+    "eslint-plugin-vue": "^9.33.0",
+    "prettier": "^3.5.3",
+    "sass": "^1.89.0",
+    "typescript": "^5.8.3",
+    "unocss": "^0.61.9",
     "unplugin-auto-import": "^0.16.7",
     "unplugin-vue-components": "^0.25.2",
-    "vite": "^5.3.1",
+    "vite": "^5.4.19",
     "vite-plugin-style-import": "^2.0.0",
-    "vue-tsc": "^2.0.22"
+    "vue-tsc": "^2.2.10"
   }
 }

File diff suppressed because it is too large
+ 440 - 241
pnpm-lock.yaml


+ 3 - 2
src/App.vue

@@ -30,10 +30,11 @@ onMounted(() => {
   background: url('https://git.sxidc.com/framework/fs-datav-html/raw/master/images/page-bg.png')
     center center no-repeat;
   background-size: 100% 100%;
-  height: 100vh;
+  width: 100%;
+  height: 100%;
 }
 .main {
-  height: calc(100vh - 70px);
+  height: calc(100% - 70px);
   padding: 15px;
 }
 </style>

+ 10 - 1
src/auto-import.d.ts

@@ -22,6 +22,7 @@ declare global {
   const createInjectionState: typeof import('@vueuse/core')['createInjectionState']
   const createPinia: typeof import('pinia')['createPinia']
   const createReactiveFn: typeof import('@vueuse/core')['createReactiveFn']
+  const createRef: typeof import('@vueuse/core')['createRef']
   const createReusableTemplate: typeof import('@vueuse/core')['createReusableTemplate']
   const createSharedComposable: typeof import('@vueuse/core')['createSharedComposable']
   const createTemplatePromise: typeof import('@vueuse/core')['createTemplatePromise']
@@ -63,6 +64,7 @@ declare global {
   const onBeforeUpdate: typeof import('vue')['onBeforeUpdate']
   const onClickOutside: typeof import('@vueuse/core')['onClickOutside']
   const onDeactivated: typeof import('vue')['onDeactivated']
+  const onElementRemoval: typeof import('@vueuse/core')['onElementRemoval']
   const onErrorCaptured: typeof import('vue')['onErrorCaptured']
   const onKeyStroke: typeof import('@vueuse/core')['onKeyStroke']
   const onLongPress: typeof import('@vueuse/core')['onLongPress']
@@ -74,6 +76,7 @@ declare global {
   const onStartTyping: typeof import('@vueuse/core')['onStartTyping']
   const onUnmounted: typeof import('vue')['onUnmounted']
   const onUpdated: typeof import('vue')['onUpdated']
+  const onWatcherCleanup: typeof import('vue')['onWatcherCleanup']
   const pausableWatch: typeof import('@vueuse/core')['pausableWatch']
   const provide: typeof import('vue')['provide']
   const provideLocal: typeof import('@vueuse/core')['provideLocal']
@@ -147,6 +150,7 @@ declare global {
   const useCloned: typeof import('@vueuse/core')['useCloned']
   const useColorMode: typeof import('@vueuse/core')['useColorMode']
   const useConfirmDialog: typeof import('@vueuse/core')['useConfirmDialog']
+  const useCountdown: typeof import('@vueuse/core')['useCountdown']
   const useCounter: typeof import('@vueuse/core')['useCounter']
   const useCssModule: typeof import('vue')['useCssModule']
   const useCssVar: typeof import('@vueuse/core')['useCssVar']
@@ -185,6 +189,7 @@ declare global {
   const useFullscreen: typeof import('@vueuse/core')['useFullscreen']
   const useGamepad: typeof import('@vueuse/core')['useGamepad']
   const useGeolocation: typeof import('@vueuse/core')['useGeolocation']
+  const useId: typeof import('vue')['useId']
   const useIdle: typeof import('@vueuse/core')['useIdle']
   const useImage: typeof import('@vueuse/core')['useImage']
   const useInfiniteScroll: typeof import('@vueuse/core')['useInfiniteScroll']
@@ -201,6 +206,7 @@ declare global {
   const useMediaQuery: typeof import('@vueuse/core')['useMediaQuery']
   const useMemoize: typeof import('@vueuse/core')['useMemoize']
   const useMemory: typeof import('@vueuse/core')['useMemory']
+  const useModel: typeof import('vue')['useModel']
   const useMounted: typeof import('@vueuse/core')['useMounted']
   const useMouse: typeof import('@vueuse/core')['useMouse']
   const useMouseInElement: typeof import('@vueuse/core')['useMouseInElement']
@@ -225,12 +231,14 @@ declare global {
   const usePreferredDark: typeof import('@vueuse/core')['usePreferredDark']
   const usePreferredLanguages: typeof import('@vueuse/core')['usePreferredLanguages']
   const usePreferredReducedMotion: typeof import('@vueuse/core')['usePreferredReducedMotion']
+  const usePreferredReducedTransparency: typeof import('@vueuse/core')['usePreferredReducedTransparency']
   const usePrevious: typeof import('@vueuse/core')['usePrevious']
   const useRafFn: typeof import('@vueuse/core')['useRafFn']
   const useRefHistory: typeof import('@vueuse/core')['useRefHistory']
   const useResizeObserver: typeof import('@vueuse/core')['useResizeObserver']
   const useRoute: typeof import('vue-router')['useRoute']
   const useRouter: typeof import('vue-router')['useRouter']
+  const useSSRWidth: typeof import('@vueuse/core')['useSSRWidth']
   const useScreenOrientation: typeof import('@vueuse/core')['useScreenOrientation']
   const useScreenSafeArea: typeof import('@vueuse/core')['useScreenSafeArea']
   const useScriptTag: typeof import('@vueuse/core')['useScriptTag']
@@ -248,6 +256,7 @@ declare global {
   const useStyleTag: typeof import('@vueuse/core')['useStyleTag']
   const useSupported: typeof import('@vueuse/core')['useSupported']
   const useSwipe: typeof import('@vueuse/core')['useSwipe']
+  const useTemplateRef: typeof import('vue')['useTemplateRef']
   const useTemplateRefsList: typeof import('@vueuse/core')['useTemplateRefsList']
   const useTextDirection: typeof import('@vueuse/core')['useTextDirection']
   const useTextSelection: typeof import('@vueuse/core')['useTextSelection']
@@ -299,6 +308,6 @@ declare global {
 // for type re-export
 declare global {
   // @ts-ignore
-  export type { Component, ComponentPublicInstance, ComputedRef, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, VNode, WritableComputedRef } from 'vue'
+  export type { Component, ComponentPublicInstance, ComputedRef, DirectiveBinding, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, MaybeRef, MaybeRefOrGetter, VNode, WritableComputedRef } from 'vue'
   import('vue')
 }

+ 7 - 6
src/components/FsTitle.vue

@@ -2,19 +2,22 @@
 import dayjs from 'dayjs'
 
 interface Props {
-  src: string
+  title: string
+  src?: string
   color?: string
   showTime?: boolean
-  title: string
   height?: string
 }
 const props = withDefaults(defineProps<Props>(), {
+  src: 'https://sxidc.com/uploads/file/f53a3b473ba76b18733f052dd8b4718b_20231008022129.png',
   color: '#fff',
-  title: '方是科技',
   showTime: true,
-  src: 'https://sxidc.com/uploads/file/f53a3b473ba76b18733f052dd8b4718b_20231008022129.png',
   height: '60px',
 })
+
+const timer: any = ref('')
+const time: any = ref('')
+
 onMounted(() => {
   if (props.showTime) {
     time.value = dayjs().format('YYYY-MM-DD HH:mm:ss')
@@ -26,8 +29,6 @@ onMounted(() => {
 onDeactivated(() => {
   timer.value && clearInterval(timer.value)
 })
-const timer: any = ref('')
-const time: any = ref('')
 </script>
 <template>
   <div

+ 1 - 1
src/views/Home.vue

@@ -1,7 +1,7 @@
 <script setup lang="ts"></script>
 
 <template>
-  <fs-title></fs-title>
+  <fs-title title="方是科技"></fs-title>
   <div class="main flex w-full">
     <div class="flex flex-col basis-1/4">
       <dv-border-box-13> </dv-border-box-13>

+ 2 - 1
tsconfig.json

@@ -17,7 +17,8 @@
       "element-plus/global"
     ],
     "jsx": "preserve",
-    "moduleResolution": "node"
+    "moduleResolution": "node",
+    "allowSyntheticDefaultImports": true
   },
   "references": [
     {

Some files were not shown because too many files changed in this diff