瀏覽代碼

🔧 build: 依赖修改

WanGxC 1 年之前
父節點
當前提交
163dc66e3f

+ 83 - 0
auto-imports.d.ts

@@ -0,0 +1,83 @@
+/* eslint-disable */
+/* prettier-ignore */
+// @ts-nocheck
+// noinspection JSUnusedGlobalSymbols
+// Generated by unplugin-auto-import
+export {}
+declare global {
+  const EffectScope: typeof import('vue')['EffectScope']
+  const acceptHMRUpdate: typeof import('pinia')['acceptHMRUpdate']
+  const computed: typeof import('vue')['computed']
+  const createApp: typeof import('vue')['createApp']
+  const createPinia: typeof import('pinia')['createPinia']
+  const customRef: typeof import('vue')['customRef']
+  const defineAsyncComponent: typeof import('vue')['defineAsyncComponent']
+  const defineComponent: typeof import('vue')['defineComponent']
+  const defineStore: typeof import('pinia')['defineStore']
+  const effectScope: typeof import('vue')['effectScope']
+  const getActivePinia: typeof import('pinia')['getActivePinia']
+  const getCurrentInstance: typeof import('vue')['getCurrentInstance']
+  const getCurrentScope: typeof import('vue')['getCurrentScope']
+  const h: typeof import('vue')['h']
+  const inject: typeof import('vue')['inject']
+  const isProxy: typeof import('vue')['isProxy']
+  const isReactive: typeof import('vue')['isReactive']
+  const isReadonly: typeof import('vue')['isReadonly']
+  const isRef: typeof import('vue')['isRef']
+  const mapActions: typeof import('pinia')['mapActions']
+  const mapGetters: typeof import('pinia')['mapGetters']
+  const mapState: typeof import('pinia')['mapState']
+  const mapStores: typeof import('pinia')['mapStores']
+  const mapWritableState: typeof import('pinia')['mapWritableState']
+  const markRaw: typeof import('vue')['markRaw']
+  const nextTick: typeof import('vue')['nextTick']
+  const onActivated: typeof import('vue')['onActivated']
+  const onBeforeMount: typeof import('vue')['onBeforeMount']
+  const onBeforeRouteLeave: typeof import('vue-router')['onBeforeRouteLeave']
+  const onBeforeRouteUpdate: typeof import('vue-router')['onBeforeRouteUpdate']
+  const onBeforeUnmount: typeof import('vue')['onBeforeUnmount']
+  const onBeforeUpdate: typeof import('vue')['onBeforeUpdate']
+  const onDeactivated: typeof import('vue')['onDeactivated']
+  const onErrorCaptured: typeof import('vue')['onErrorCaptured']
+  const onMounted: typeof import('vue')['onMounted']
+  const onRenderTracked: typeof import('vue')['onRenderTracked']
+  const onRenderTriggered: typeof import('vue')['onRenderTriggered']
+  const onScopeDispose: typeof import('vue')['onScopeDispose']
+  const onServerPrefetch: typeof import('vue')['onServerPrefetch']
+  const onUnmounted: typeof import('vue')['onUnmounted']
+  const onUpdated: typeof import('vue')['onUpdated']
+  const provide: typeof import('vue')['provide']
+  const reactive: typeof import('vue')['reactive']
+  const readonly: typeof import('vue')['readonly']
+  const ref: typeof import('vue')['ref']
+  const resolveComponent: typeof import('vue')['resolveComponent']
+  const setActivePinia: typeof import('pinia')['setActivePinia']
+  const setMapStoreSuffix: typeof import('pinia')['setMapStoreSuffix']
+  const shallowReactive: typeof import('vue')['shallowReactive']
+  const shallowReadonly: typeof import('vue')['shallowReadonly']
+  const shallowRef: typeof import('vue')['shallowRef']
+  const storeToRefs: typeof import('pinia')['storeToRefs']
+  const toRaw: typeof import('vue')['toRaw']
+  const toRef: typeof import('vue')['toRef']
+  const toRefs: typeof import('vue')['toRefs']
+  const toValue: typeof import('vue')['toValue']
+  const triggerRef: typeof import('vue')['triggerRef']
+  const unref: typeof import('vue')['unref']
+  const useAttrs: typeof import('vue')['useAttrs']
+  const useCssModule: typeof import('vue')['useCssModule']
+  const useCssVars: typeof import('vue')['useCssVars']
+  const useLink: typeof import('vue-router')['useLink']
+  const useRoute: typeof import('vue-router')['useRoute']
+  const useRouter: typeof import('vue-router')['useRouter']
+  const useSlots: typeof import('vue')['useSlots']
+  const watch: typeof import('vue')['watch']
+  const watchEffect: typeof import('vue')['watchEffect']
+  const watchPostEffect: typeof import('vue')['watchPostEffect']
+  const watchSyncEffect: typeof import('vue')['watchSyncEffect']
+}
+// for type re-export
+declare global {
+  // @ts-ignore
+  export type { Component, ComponentPublicInstance, ComputedRef, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, VNode, WritableComputedRef } from 'vue'
+  import('vue')
+}

+ 99 - 0
components.d.ts

@@ -0,0 +1,99 @@
+/* eslint-disable */
+/* prettier-ignore */
+// @ts-nocheck
+// Generated by unplugin-vue-components
+// Read more: https://github.com/vuejs/core/pull/3399
+export {}
+
+declare module 'vue' {
+  export interface GlobalComponents {
+    Auth: typeof import('./src/components/auth/auth.vue')['default']
+    AuthAll: typeof import('./src/components/auth/authAll.vue')['default']
+    Auths: typeof import('./src/components/auth/auths.vue')['default']
+    AvatarSelector: typeof import('./src/components/avatarSelector/index.vue')['default']
+    BarChart: typeof import('./src/components/echartsComponents/BarChart.vue')['default']
+    BarLineChart: typeof import('./src/components/echartsComponents/BarLineChart.vue')['default']
+    ConditionBuilder: typeof import('./src/components/conditionBuilder/index.vue')['default']
+    ConditionGroup: typeof import('./src/components/conditionBuilder/condition-group.vue')['default']
+    ConditionGroup2: typeof import('./src/components/conditionBuilder/condition-group2.vue')['default']
+    Cropper: typeof import('./src/components/cropper/index.vue')['default']
+    DataCompare: typeof import('./src/components/dataCompare/index.vue')['default']
+    DataTendency: typeof import('./src/components/echartsComponents/dataTendency.vue')['default']
+    DateRangePicker: typeof import('./src/components/DateRangePicker/index.vue')['default']
+    DynamicCard: typeof import('./src/components/cardComponents/dynamicCard.vue')['default']
+    DynamicTime: typeof import('./src/components/DynamicTime/index.vue')['default']
+    Editor: typeof import('./src/components/editor/index.vue')['default']
+    ElAlert: typeof import('element-plus/es')['ElAlert']
+    ElAside: typeof import('element-plus/es')['ElAside']
+    ElAutocomplete: typeof import('element-plus/es')['ElAutocomplete']
+    ElBacktop: typeof import('element-plus/es')['ElBacktop']
+    ElBadge: typeof import('element-plus/es')['ElBadge']
+    ElBreadcrumb: typeof import('element-plus/es')['ElBreadcrumb']
+    ElBreadcrumbItem: typeof import('element-plus/es')['ElBreadcrumbItem']
+    ElButton: typeof import('element-plus/es')['ElButton']
+    ElCard: typeof import('element-plus/es')['ElCard']
+    ElCol: typeof import('element-plus/es')['ElCol']
+    ElColorPicker: typeof import('element-plus/es')['ElColorPicker']
+    ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider']
+    ElContainer: typeof import('element-plus/es')['ElContainer']
+    ElDatePicker: typeof import('element-plus/es')['ElDatePicker']
+    ElDialog: typeof import('element-plus/es')['ElDialog']
+    ElDivider: typeof import('element-plus/es')['ElDivider']
+    ElDrawer: typeof import('element-plus/es')['ElDrawer']
+    ElDropdown: typeof import('element-plus/es')['ElDropdown']
+    ElDropdownItem: typeof import('element-plus/es')['ElDropdownItem']
+    ElDropdownMenu: typeof import('element-plus/es')['ElDropdownMenu']
+    ElHeader: typeof import('element-plus/es')['ElHeader']
+    ElIcon: typeof import('element-plus/es')['ElIcon']
+    ElImage: typeof import('element-plus/es')['ElImage']
+    ElInput: typeof import('element-plus/es')['ElInput']
+    ElInputNumber: typeof import('element-plus/es')['ElInputNumber']
+    ElLink: typeof import('element-plus/es')['ElLink']
+    ElMain: typeof import('element-plus/es')['ElMain']
+    ElMenu: typeof import('element-plus/es')['ElMenu']
+    ElMenuItem: typeof import('element-plus/es')['ElMenuItem']
+    ElOption: typeof import('element-plus/es')['ElOption']
+    ElPopover: typeof import('element-plus/es')['ElPopover']
+    ElProgress: typeof import('element-plus/es')['ElProgress']
+    ElRadioButton: typeof import('element-plus/es')['ElRadioButton']
+    ElRadioGroup: typeof import('element-plus/es')['ElRadioGroup']
+    ElRow: typeof import('element-plus/es')['ElRow']
+    ElScrollbar: typeof import('element-plus/es')['ElScrollbar']
+    ElSelect: typeof import('element-plus/es')['ElSelect']
+    ElSubMenu: typeof import('element-plus/es')['ElSubMenu']
+    ElSwitch: typeof import('element-plus/es')['ElSwitch']
+    ElTabPane: typeof import('element-plus/es')['ElTabPane']
+    ElTabs: typeof import('element-plus/es')['ElTabs']
+    ElTooltip: typeof import('element-plus/es')['ElTooltip']
+    ForeignKey: typeof import('./src/components/foreignKey/index.vue')['default']
+    IconSelector: typeof import('./src/components/iconSelector/index.vue')['default']
+    ImportExcel: typeof import('./src/components/importExcel/index.vue')['default']
+    InputFloat: typeof import('./src/components/input-float/index.vue')['default']
+    LineChart: typeof import('./src/components/echartsComponents/LineChart.vue')['default']
+    List: typeof import('./src/components/iconSelector/list.vue')['default']
+    ManyToMany: typeof import('./src/components/manyToMany/index.vue')['default']
+    MCard: typeof import('./src/components/MetricsCards/mCard.vue')['default']
+    MetricsCards: typeof import('./src/components/MetricsCards/index.vue')['default']
+    NoticeBar: typeof import('./src/components/noticeBar/index.vue')['default']
+    PieBarChart: typeof import('./src/components/echartsComponents/PieBarChart.vue')['default']
+    RangeFloat: typeof import('./src/components/range-float/index.vue')['default']
+    RouterLink: typeof import('vue-router')['RouterLink']
+    RouterView: typeof import('vue-router')['RouterView']
+    ScatterChart: typeof import('./src/components/echartsComponents/ScatterChart.vue')['default']
+    SearchInput: typeof import('./src/components/searchInput/index.vue')['default']
+    SelectButton: typeof import('./src/components/select-button/index.vue')['default']
+    ShopSelector: typeof import('./src/components/shopSelector/index.vue')['default']
+    ShowCard: typeof import('./src/components/cardComponents/ShowCard.vue')['default']
+    SvgIcon: typeof import('./src/components/svgIcon/index.vue')['default']
+    Table: typeof import('./src/components/table/index.vue')['default']
+    TableSelector: typeof import('./src/components/tableSelector/index.vue')['default']
+    TagsInput: typeof import('./src/components/tags-input/index.vue')['default']
+    TextSelector: typeof import('./src/components/TextSelector/index.vue')['default']
+    TimerBidTable: typeof import('./src/components/TimerBidTable/index.vue')['default']
+    TimerBudgetTable: typeof import('./src/components/TimerBudgetTable/index.vue')['default']
+  }
+  export interface ComponentCustomProperties {
+    vInfiniteScroll: typeof import('element-plus/es')['ElInfiniteScroll']
+    vLoading: typeof import('element-plus/es')['ElLoadingDirective']
+  }
+}

+ 68 - 98
package-lock.json

@@ -25,9 +25,9 @@
 			}
 		},
 		"@antfu/utils": {
-			"version": "0.7.6",
-			"resolved": "https://registry.npmmirror.com/@antfu/utils/-/utils-0.7.6.tgz",
-			"integrity": "sha512-pvFiLP2BeOKA/ZOS6jxx4XhKzdVLHDhGlFEaZ2flWWYf2xOqVniqpk38I04DFRyz+L0ASggl7SkItTc+ZLju4w==",
+			"version": "0.7.7",
+			"resolved": "https://registry.npmmirror.com/@antfu/utils/-/utils-0.7.7.tgz",
+			"integrity": "sha512-gFPqTG7otEJ8uP6wrhDv6mqwGWYZKNvAcCq6u9hOj0c+IKCEsY4L1oC9trPq2SaWIzAfHvqfBDxF591JkMf+kg==",
 			"dev": true
 		},
 		"@aws-crypto/crc32": {
@@ -2786,9 +2786,9 @@
 			"integrity": "sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A=="
 		},
 		"@rollup/pluginutils": {
-			"version": "5.0.5",
-			"resolved": "https://registry.npmmirror.com/@rollup/pluginutils/-/pluginutils-5.0.5.tgz",
-			"integrity": "sha512-6aEYR910NyP73oHiJglti74iRyOwgFU4x3meH/H8OJx6Ry0j6cOVZ5X/wTvub7G7Ao6qaHBEaNsV3GLJkSsF+Q==",
+			"version": "5.1.0",
+			"resolved": "https://registry.npmmirror.com/@rollup/pluginutils/-/pluginutils-5.1.0.tgz",
+			"integrity": "sha512-XTIWOPPcpvyKI6L1NHo0lFlCyznUEyPmPY1mc3KpPVDYulHSTvyeLNVW00QTLIAFNhR3kYnJTQHeGqU4M3n09g==",
 			"dev": true,
 			"requires": {
 				"@types/estree": "^1.0.0",
@@ -3377,9 +3377,9 @@
 			"integrity": "sha512-VeJbUb0wEKbcwaSlj5n+LscBl9IPgLPkHVGBkh00cztv6X4L/TJXK58LzFuBKX7/GAfiGhIwH67YTLTlzvIzBA=="
 		},
 		"@types/estree": {
-			"version": "1.0.2",
-			"resolved": "https://registry.npmmirror.com/@types/estree/-/estree-1.0.2.tgz",
-			"integrity": "sha512-VeiPZ9MMwXjO32/Xu7+OwflfmeoRwkE/qzndw42gGtgJwZopBnzy2gD//NN1+go1mADzkDcqf/KnFRSjTJ8xJA==",
+			"version": "1.0.5",
+			"resolved": "https://registry.npmmirror.com/@types/estree/-/estree-1.0.5.tgz",
+			"integrity": "sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==",
 			"dev": true
 		},
 		"@types/event-emitter": {
@@ -5866,10 +5866,14 @@
 			"integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg=="
 		},
 		"local-pkg": {
-			"version": "0.4.3",
-			"resolved": "https://registry.npmmirror.com/local-pkg/-/local-pkg-0.4.3.tgz",
-			"integrity": "sha512-SFppqq5p42fe2qcZQqqEOiVRXl+WCP1MdT6k7BDEW1j++sp5fIY+/fdRQitvKgB5BrBcmrs5m/L0v2FrU5MY1g==",
-			"dev": true
+			"version": "0.5.0",
+			"resolved": "https://registry.npmmirror.com/local-pkg/-/local-pkg-0.5.0.tgz",
+			"integrity": "sha512-ok6z3qlYyCDS4ZEU27HaU6x/xZa9Whf8jD4ptH5UZTQYZVYeb9bnZ3ojVhiJNLiXK1Hfc0GNbLXcmZ5plLDDBg==",
+			"dev": true,
+			"requires": {
+				"mlly": "^1.4.2",
+				"pkg-types": "^1.0.3"
+			}
 		},
 		"locate-path": {
 			"version": "6.0.0",
@@ -7248,9 +7252,9 @@
 			"dev": true
 		},
 		"ufo": {
-			"version": "1.4.0",
-			"resolved": "https://registry.npmmirror.com/ufo/-/ufo-1.4.0.tgz",
-			"integrity": "sha512-Hhy+BhRBleFjpJ2vchUNN40qgkh0366FWJGqVLYBHev0vpHTrXSA0ryT+74UiW6KWsldNurQMKGqCm1M2zBciQ==",
+			"version": "1.5.2",
+			"resolved": "https://registry.npmmirror.com/ufo/-/ufo-1.5.2.tgz",
+			"integrity": "sha512-eiutMaL0J2MKdhcOM1tUy13pIrYnyR87fEd8STJQFrrAwImwvlXkxlZEjaKah8r2viPohld08lt73QfLG1NxMg==",
 			"dev": true
 		},
 		"unescape": {
@@ -7282,47 +7286,12 @@
 				"unplugin": "^1.5.1"
 			},
 			"dependencies": {
-				"@rollup/pluginutils": {
-					"version": "5.1.0",
-					"resolved": "https://registry.npmmirror.com/@rollup/pluginutils/-/pluginutils-5.1.0.tgz",
-					"integrity": "sha512-XTIWOPPcpvyKI6L1NHo0lFlCyznUEyPmPY1mc3KpPVDYulHSTvyeLNVW00QTLIAFNhR3kYnJTQHeGqU4M3n09g==",
-					"dev": true,
-					"requires": {
-						"@types/estree": "^1.0.0",
-						"estree-walker": "^2.0.2",
-						"picomatch": "^2.3.1"
-					},
-					"dependencies": {
-						"estree-walker": {
-							"version": "2.0.2",
-							"resolved": "https://registry.npmmirror.com/estree-walker/-/estree-walker-2.0.2.tgz",
-							"integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==",
-							"dev": true
-						}
-					}
-				},
 				"acorn": {
 					"version": "8.11.3",
 					"resolved": "https://registry.npmmirror.com/acorn/-/acorn-8.11.3.tgz",
 					"integrity": "sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==",
 					"dev": true
 				},
-				"chokidar": {
-					"version": "3.6.0",
-					"resolved": "https://registry.npmmirror.com/chokidar/-/chokidar-3.6.0.tgz",
-					"integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==",
-					"dev": true,
-					"requires": {
-						"anymatch": "~3.1.2",
-						"braces": "~3.0.2",
-						"fsevents": "~2.3.2",
-						"glob-parent": "~5.1.2",
-						"is-binary-path": "~2.1.0",
-						"is-glob": "~4.0.1",
-						"normalize-path": "~3.0.0",
-						"readdirp": "~3.6.0"
-					}
-				},
 				"escape-string-regexp": {
 					"version": "5.0.0",
 					"resolved": "https://registry.npmmirror.com/escape-string-regexp/-/escape-string-regexp-5.0.0.tgz",
@@ -7360,16 +7329,6 @@
 						"is-glob": "^4.0.1"
 					}
 				},
-				"local-pkg": {
-					"version": "0.5.0",
-					"resolved": "https://registry.npmmirror.com/local-pkg/-/local-pkg-0.5.0.tgz",
-					"integrity": "sha512-ok6z3qlYyCDS4ZEU27HaU6x/xZa9Whf8jD4ptH5UZTQYZVYeb9bnZ3ojVhiJNLiXK1Hfc0GNbLXcmZ5plLDDBg==",
-					"dev": true,
-					"requires": {
-						"mlly": "^1.4.2",
-						"pkg-types": "^1.0.3"
-					}
-				},
 				"magic-string": {
 					"version": "0.30.8",
 					"resolved": "https://registry.npmmirror.com/magic-string/-/magic-string-0.30.8.tgz",
@@ -7378,37 +7337,52 @@
 					"requires": {
 						"@jridgewell/sourcemap-codec": "^1.4.15"
 					}
-				},
-				"unplugin": {
-					"version": "1.8.3",
-					"resolved": "https://registry.npmmirror.com/unplugin/-/unplugin-1.8.3.tgz",
-					"integrity": "sha512-ZlLteXGDcyJgsbN2g4sZ3Dw6fpX1O5rjgeaA5MmQhhA2YxnTxsh43f8nDQgFOzcir0iv8GYMjtCV8MtyNnrhEg==",
-					"dev": true,
-					"requires": {
-						"acorn": "^8.11.3",
-						"chokidar": "^3.6.0",
-						"webpack-sources": "^3.2.3",
-						"webpack-virtual-modules": "^0.6.1"
-					}
-				},
-				"webpack-virtual-modules": {
-					"version": "0.6.1",
-					"resolved": "https://registry.npmmirror.com/webpack-virtual-modules/-/webpack-virtual-modules-0.6.1.tgz",
-					"integrity": "sha512-poXpCylU7ExuvZK8z+On3kX+S8o/2dQ/SVYueKA0D4WEMXROXgY8Ez50/bQEUmvoSMMrWcrJqCHuhAbsiwg7Dg==",
-					"dev": true
 				}
 			}
 		},
 		"unplugin": {
-			"version": "1.5.0",
-			"resolved": "https://registry.npmmirror.com/unplugin/-/unplugin-1.5.0.tgz",
-			"integrity": "sha512-9ZdRwbh/4gcm1JTOkp9lAkIDrtOyOxgHmY7cjuwI8L/2RTikMcVG25GsZwNAgRuap3iDw2jeq7eoqtAsz5rW3A==",
+			"version": "1.10.0",
+			"resolved": "https://registry.npmmirror.com/unplugin/-/unplugin-1.10.0.tgz",
+			"integrity": "sha512-CuZtvvO8ua2Wl+9q2jEaqH6m3DoQ38N7pvBYQbbaeNlWGvK2l6GHiKi29aIHDPoSxdUzQ7Unevf1/ugil5X6Pg==",
 			"dev": true,
 			"requires": {
-				"acorn": "^8.10.0",
-				"chokidar": "^3.5.3",
+				"acorn": "^8.11.3",
+				"chokidar": "^3.6.0",
 				"webpack-sources": "^3.2.3",
-				"webpack-virtual-modules": "^0.5.0"
+				"webpack-virtual-modules": "^0.6.1"
+			},
+			"dependencies": {
+				"acorn": {
+					"version": "8.11.3",
+					"resolved": "https://registry.npmmirror.com/acorn/-/acorn-8.11.3.tgz",
+					"integrity": "sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==",
+					"dev": true
+				},
+				"chokidar": {
+					"version": "3.6.0",
+					"resolved": "https://registry.npmmirror.com/chokidar/-/chokidar-3.6.0.tgz",
+					"integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==",
+					"dev": true,
+					"requires": {
+						"anymatch": "~3.1.2",
+						"braces": "~3.0.2",
+						"fsevents": "~2.3.2",
+						"glob-parent": "~5.1.2",
+						"is-binary-path": "~2.1.0",
+						"is-glob": "~4.0.1",
+						"normalize-path": "~3.0.0",
+						"readdirp": "~3.6.0"
+					}
+				},
+				"glob-parent": {
+					"version": "5.1.2",
+					"resolved": "https://registry.npmmirror.com/glob-parent/-/glob-parent-5.1.2.tgz",
+					"integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",
+					"dev": true,
+					"requires": {
+						"is-glob": "^4.0.1"
+					}
+				}
 			}
 		},
 		"unplugin-auto-import": {
@@ -7436,16 +7410,6 @@
 						"balanced-match": "^1.0.0"
 					}
 				},
-				"local-pkg": {
-					"version": "0.5.0",
-					"resolved": "https://registry.npmmirror.com/local-pkg/-/local-pkg-0.5.0.tgz",
-					"integrity": "sha512-ok6z3qlYyCDS4ZEU27HaU6x/xZa9Whf8jD4ptH5UZTQYZVYeb9bnZ3ojVhiJNLiXK1Hfc0GNbLXcmZ5plLDDBg==",
-					"dev": true,
-					"requires": {
-						"mlly": "^1.4.2",
-						"pkg-types": "^1.0.3"
-					}
-				},
 				"magic-string": {
 					"version": "0.30.8",
 					"resolved": "https://registry.npmmirror.com/magic-string/-/magic-string-0.30.8.tgz",
@@ -7493,6 +7457,12 @@
 						"balanced-match": "^1.0.0"
 					}
 				},
+				"local-pkg": {
+					"version": "0.4.3",
+					"resolved": "https://registry.npmmirror.com/local-pkg/-/local-pkg-0.4.3.tgz",
+					"integrity": "sha512-SFppqq5p42fe2qcZQqqEOiVRXl+WCP1MdT6k7BDEW1j++sp5fIY+/fdRQitvKgB5BrBcmrs5m/L0v2FrU5MY1g==",
+					"dev": true
+				},
 				"minimatch": {
 					"version": "9.0.3",
 					"resolved": "https://registry.npmmirror.com/minimatch/-/minimatch-9.0.3.tgz",
@@ -7929,9 +7899,9 @@
 			"dev": true
 		},
 		"webpack-virtual-modules": {
-			"version": "0.5.0",
-			"resolved": "https://registry.npmmirror.com/webpack-virtual-modules/-/webpack-virtual-modules-0.5.0.tgz",
-			"integrity": "sha512-kyDivFZ7ZM0BVOUteVbDFhlRt7Ah/CSPwJdi8hBpkK7QLumUqdLtVfm/PX/hkcnrvr0i77fO5+TjZ94Pe+C9iw==",
+			"version": "0.6.1",
+			"resolved": "https://registry.npmmirror.com/webpack-virtual-modules/-/webpack-virtual-modules-0.6.1.tgz",
+			"integrity": "sha512-poXpCylU7ExuvZK8z+On3kX+S8o/2dQ/SVYueKA0D4WEMXROXgY8Ez50/bQEUmvoSMMrWcrJqCHuhAbsiwg7Dg==",
 			"dev": true
 		},
 		"which": {

+ 12 - 0
src/views/productCenter/productAnalysis/components/CpRecommendations/index.vue

@@ -0,0 +1,12 @@
+<template>
+  <div>
+    <div></div>  
+  </div>
+</template>
+  
+<script setup>
+
+</script>
+  
+<style scoped>
+</style>

+ 4 - 1
src/views/productCenter/productAnalysis/index.vue

@@ -24,7 +24,9 @@
         <el-tab-pane label="销售概览" name="salesOverview" lazy>
           <SalesOverview></SalesOverview>
         </el-tab-pane>
-        <el-tab-pane label="竞品推荐" name="cpRecommendations">竞品推荐</el-tab-pane>
+        <el-tab-pane label="竞品推荐" name="cpRecommendations">
+          <CpRecommendations></CpRecommendations>
+        </el-tab-pane>
       </el-tabs>
     </div>
   </div>
@@ -37,6 +39,7 @@ import DataTable from './components/DataTable/index.vue'
 import TopParentAsin from './components/TopParentAsin/index.vue'
 import TrendOverview from './components/TrendOverview/index.vue'
 import SalesOverview from './components/SalesOverview/index.vue'
+import CpRecommendations from './components/CpRecommendations/index.vue'
 import DateRangePicker from '/@/components/DateRangePicker/index.vue'
 import { usePublicData } from '/@/stores/publicData'
 import { useShopInfo } from '/@/stores/shopInfo'

+ 71 - 59
vite.config.ts

@@ -1,69 +1,81 @@
-import vue from '@vitejs/plugin-vue';
-import {resolve} from 'path';
-import {defineConfig, loadEnv, ConfigEnv} from 'vite';
-import vueSetupExtend from 'vite-plugin-vue-setup-extend';
+import vue from '@vitejs/plugin-vue'
+import { resolve } from 'path'
+import { defineConfig, loadEnv, ConfigEnv } from 'vite'
+import vueSetupExtend from 'vite-plugin-vue-setup-extend'
 import vueJsx from '@vitejs/plugin-vue-jsx'
+import AutoImport from 'unplugin-auto-import/vite'
+import Components from 'unplugin-vue-components/vite'
+import { ElementPlusResolver } from 'unplugin-vue-components/resolvers'
 
 const pathResolve = (dir: string) => {
-    return resolve(__dirname, '.', dir);
-};
+  return resolve(__dirname, '.', dir)
+}
 
 const alias: Record<string, string> = {
-    '/@': pathResolve('./src/'),
-    '@views': pathResolve('./src/views'),
-    'vue-i18n': 'vue-i18n/dist/vue-i18n.cjs.js',
-};
+  '/@': pathResolve('./src/'),
+  '@views': pathResolve('./src/views'),
+  'vue-i18n': 'vue-i18n/dist/vue-i18n.cjs.js',
+}
 
 const viteConfig = defineConfig((mode: ConfigEnv) => {
-    const env = loadEnv(mode.mode, process.cwd());
-    return {
-        plugins: [
-            vue(), vueJsx(), vueSetupExtend(),
-        ],
-        root: process.cwd(),
-        resolve: {alias},
-        base: mode.command === 'serve' ? './' : env.VITE_PUBLIC_PATH,
-        optimizeDeps: {
-            include: ['element-plus/es/locale/lang/zh-cn', 'element-plus/es/locale/lang/en', 'element-plus/es/locale/lang/zh-tw'],
+  const env = loadEnv(mode.mode, process.cwd())
+  return {
+    plugins: [
+      vue(),
+      vueJsx(),
+      vueSetupExtend(),
+      AutoImport({
+        imports: ['vue', 'vue-router', 'pinia'],
+        // resolvers: [ElementPlusResolver()],
+      }),
+    //   Components({
+    //     resolvers: [ElementPlusResolver()],
+    //   }),
+    ],
+    root: process.cwd(),
+    resolve: { alias },
+    base: mode.command === 'serve' ? './' : env.VITE_PUBLIC_PATH,
+    optimizeDeps: {
+      include: ['element-plus/es/locale/lang/zh-cn', 'element-plus/es/locale/lang/en', 'element-plus/es/locale/lang/zh-tw'],
+    },
+    server: {
+      host: '0.0.0.0',
+      port: env.VITE_PORT as unknown as number,
+      open: true,
+      hmr: true,
+      proxy: {
+        '/gitee': {
+          target: 'https://gitee.com',
+          ws: true,
+          changeOrigin: true,
+          rewrite: (path) => path.replace(/^\/gitee/, ''),
         },
-        server: {
-            host: '0.0.0.0',
-            port: env.VITE_PORT as unknown as number,
-            open: true,
-            hmr: true,
-            proxy: {
-                '/gitee': {
-                    target: 'https://gitee.com',
-                    ws: true,
-                    changeOrigin: true,
-                    rewrite: (path) => path.replace(/^\/gitee/, ''),
-                },
-            },
+      },
+    },
+    build: {
+      outDir: 'dist',
+      chunkSizeWarningLimit: 1500,
+      rollupOptions: {
+        output: {
+          entryFileNames: `assets/[name].[hash].js`,
+          chunkFileNames: `assets/[name].[hash].js`,
+          assetFileNames: `assets/[name].[hash].[ext]`,
+          compact: true,
+          manualChunks: {
+            vue: ['vue', 'vue-router', 'pinia'],
+            echarts: ['echarts'],
+          },
         },
-        build: {
-            outDir: 'dist',
-            chunkSizeWarningLimit: 1500,
-            rollupOptions: {
-                output: {
-                    entryFileNames: `assets/[name].[hash].js`,
-                    chunkFileNames: `assets/[name].[hash].js`,
-                    assetFileNames: `assets/[name].[hash].[ext]`,
-                    compact: true,
-                    manualChunks: {
-                        vue: ['vue', 'vue-router', 'pinia'],
-                        echarts: ['echarts'],
-                    },
-                },
-            },
-        },
-        css: {preprocessorOptions: {css: {charset: false}}},
-        define: {
-            __VUE_I18N_LEGACY_API__: JSON.stringify(false),
-            __VUE_I18N_FULL_INSTALL__: JSON.stringify(false),
-            __INTLIFY_PROD_DEVTOOLS__: JSON.stringify(false),
-            __VERSION__: JSON.stringify(process.env.npm_package_version),
-        },
-    };
-});
+      },
+    },
+    css: { preprocessorOptions: { css: { charset: false } } },
+    define: {
+      __VUE_I18N_LEGACY_API__: JSON.stringify(false),
+      __VUE_I18N_FULL_INSTALL__: JSON.stringify(false),
+      __INTLIFY_PROD_DEVTOOLS__: JSON.stringify(false),
+      __VERSION__: JSON.stringify(process.env.npm_package_version),
+    },
+  }
+})
 
-export default viteConfig;
+export default viteConfig