diff --git a/build/optimize.ts b/build/optimize.ts index b021da6a87..5d2e7be97f 100644 --- a/build/optimize.ts +++ b/build/optimize.ts @@ -5,13 +5,20 @@ * 温馨提示:如果您使用的第三方库是全局引入,也就是引入到 src/main.ts 文件里,就不需要再添加到 include 里了,因为 vite 会自动将它们缓存到 node_modules/.vite */ export const include = [ + "qs", + "mitt", "xlsx", "dayjs", + "axios", "pinia", "swiper", "lodash", + "echarts", "intro.js", "vue-i18n", + "xe-utils", + "vxe-table", + "js-cookie", "lodash-es", "cropperjs", "jsbarcode", @@ -22,13 +29,16 @@ export const include = [ "v-contextmenu", "vue-pdf-embed", "lodash-unified", + "@ctrl/tinycolor", "china-area-data", "@faker-js/faker", "vue-json-pretty", "@logicflow/core", "@pureadmin/utils", + "responsive-storage", "@howdyjs/mouse-menu", "@logicflow/extension", + "element-resize-detector", "@amap/amap-jsapi-loader", "el-table-infinite-scroll", "@wangeditor/editor-for-vue", diff --git a/package.json b/package.json index f4d16cc457..16dd68b265 100644 --- a/package.json +++ b/package.json @@ -38,7 +38,7 @@ "@pureadmin/descriptions": "^1.1.0", "@pureadmin/table": "^1.8.0", "@pureadmin/utils": "^1.6.7", - "@vueuse/core": "^9.5.0", + "@vueuse/core": "^9.6.0", "@vueuse/motion": "2.0.0-beta.12", "@wangeditor/editor": "^5.1.21", "@wangeditor/editor-for-vue": "^5.1.12", @@ -146,7 +146,7 @@ "tailwindcss": "^3.2.4", "terser": "^5.15.1", "typescript": "^4.9.3", - "unplugin-vue-macros": "^0.16.3", + "unplugin-vue-macros": "^1.0.3", "vite": "3.1.8", "vite-plugin-cdn-import": "^0.3.5", "vite-plugin-compression": "^0.5.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 432ba870cb..c0a4b50509 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -42,7 +42,7 @@ specifiers: "@vue/eslint-config-prettier": ^7.0.0 "@vue/eslint-config-typescript": ^11.0.2 "@vue/runtime-core": ^3.2.45 - "@vueuse/core": ^9.5.0 + "@vueuse/core": ^9.6.0 "@vueuse/motion": 2.0.0-beta.12 "@wangeditor/editor": ^5.1.21 "@wangeditor/editor-for-vue": ^5.1.12 @@ -102,7 +102,7 @@ specifiers: terser: ^5.15.1 typeit: ^8.7.0 typescript: ^4.9.3 - unplugin-vue-macros: ^0.16.3 + unplugin-vue-macros: ^1.0.3 v-contextmenu: 3.0.0 vite: 3.1.8 vite-plugin-cdn-import: ^0.3.5 @@ -136,7 +136,7 @@ dependencies: "@pureadmin/descriptions": 1.1.1_element-plus@2.2.25 "@pureadmin/table": 1.8.0_element-plus@2.2.25 "@pureadmin/utils": 1.6.7_aotapuqn7htzdjltsyimavekky - "@vueuse/core": 9.5.0_vue@3.2.45 + "@vueuse/core": 9.6.0_vue@3.2.45 "@vueuse/motion": 2.0.0-beta.12_vue@3.2.45 "@wangeditor/editor": 5.1.23 "@wangeditor/editor-for-vue": 5.1.12_3apfu3xbp6awzuex7ed3sbrv6y @@ -244,7 +244,7 @@ devDependencies: tailwindcss: 3.2.4_postcss@8.4.19 terser: 5.15.1 typescript: 4.9.3 - unplugin-vue-macros: 0.16.3_33e425fbdcno4preplio4kvzwe + unplugin-vue-macros: 1.0.3_5wosmox4cb7ovevlqdhap7knuu vite: 3.1.8_sass@1.56.1+terser@5.15.1 vite-plugin-cdn-import: 0.3.5 vite-plugin-compression: 0.5.1_vite@3.1.8 @@ -1976,34 +1976,34 @@ packages: "@volar/vue-language-core": 1.0.9 dev: true - /@vue-macros/api/0.1.2: + /@vue-macros/api/0.2.0: resolution: { - integrity: sha512-NuhWgOmxwmdHtGVhucLaRSJPymmr8Phabw2PuV8mLp7pRmjibp+99+RWF6IwXCNqVnEDYt3MwcEzTvPSzRcqjA== + integrity: sha512-E0rhhszd3MSE8l+A78gj9ONs4lsqOLHpONNzrc7H2nlPhEDsp4ZyQt+A9rRfxX+BTeLYfq64mli2qRV0tixiaw== } engines: { node: ">=14.19.0" } dependencies: "@babel/types": 7.20.2 - "@vue-macros/common": 0.13.3 + "@vue-macros/common": 0.13.4 dev: true - /@vue-macros/better-define/0.1.0: + /@vue-macros/better-define/1.0.0: resolution: { - integrity: sha512-ujuB6G/1+/2Y789CGZegyyRzGoW8bTWzGUXgpNPiIF9H+o3r+1/Ksd1wYC9J08jZrtaXh9q4a6m6b0otbABQ8g== + integrity: sha512-SVQky3fk9wRrSH153Tw1+0sP5i6OB5iiUOtAC/mceH0IN5NGbDXt2YagELEM2+6caDquXNRL6jbG0HfRH6u0cA== } engines: { node: ">=14.19.0" } dependencies: "@rollup/pluginutils": 4.2.1 - "@vue-macros/api": 0.1.2 - "@vue-macros/common": 0.13.3 - unplugin: 0.10.2 + "@vue-macros/api": 0.2.0 + "@vue-macros/common": 0.13.4 + unplugin: 1.0.0 dev: true - /@vue-macros/common/0.13.3: + /@vue-macros/common/0.13.4: resolution: { - integrity: sha512-pV9UFwGZs7ddbAmJI5PZvNA2ZlNESQD81jOJM1wmwLnta66K8m0RQuJK2X/tdy7Avpm/p62M8opwbWyfXsBk4w== + integrity: sha512-mQooO33XcY4kQyKBrbGfdIPPsYhpcfmH75SQnXx2vNsNLSNvhLuDaIIV0fhMJ0HV5Z02V9Ka1gx7v1g5bk9Q0A== } engines: { node: ">=14.19.0" } dependencies: @@ -2012,10 +2012,10 @@ packages: magic-string: 0.26.7 dev: true - /@vue-macros/define-model/0.14.0_@vueuse+core@9.5.0: + /@vue-macros/define-model/1.0.0_@vueuse+core@9.6.0: resolution: { - integrity: sha512-dqx+UYhfmFHKHjGXzwh7Xk0EUJT0GIZh5noSeIIar1PJC6as6bprCq/14ZBnu5whlfBYP2WZpfnk1S7JK5TTIQ== + integrity: sha512-Nyh1fidDcfCzEKAo/ljwdQbpgMOrNowdJomB/qnkz/Lx4CVEaRk87LA2o3T99qIOogRfya8af+bLM8dNOq8dAQ== } engines: { node: ">=14.19.0" } peerDependencies: @@ -2025,81 +2025,81 @@ packages: optional: true dependencies: "@rollup/pluginutils": 4.2.1 - "@vue-macros/common": 0.13.3 - "@vueuse/core": 9.5.0_vue@3.2.45 + "@vue-macros/common": 0.13.4 + "@vueuse/core": 9.6.0_vue@3.2.45 ast-walker-scope: 0.3.0 - unplugin: 0.10.2 + unplugin: 1.0.0 dev: true - /@vue-macros/define-props/0.0.2_vue@3.2.45: + /@vue-macros/define-props/0.0.3_vue@3.2.45: resolution: { - integrity: sha512-OfqC+xlN+0/koBPr4HbCJUsRbPhyOqJR2TJdeb0efTewyEljxskqh3ZCGzE4RusX+yzqTrzePlxWTcb1akNr8Q== + integrity: sha512-GAiALWSrIogwdjbIe60Hi4CSvWFmZG7KySK8JBf7lszWNgoSirj/NKzmJOaHY0/I217tfq4Ew/brbdvcEhCikg== } engines: { node: ">=14.19.0" } peerDependencies: vue: ^3.2.25 dependencies: "@rollup/pluginutils": 4.2.1 - "@vue-macros/common": 0.13.3 - unplugin: 0.10.2 + "@vue-macros/common": 0.13.4 + unplugin: 1.0.0 vue: 3.2.45 dev: true - /@vue-macros/define-render/0.13.8_vue@3.2.45: + /@vue-macros/define-render/1.0.1_vue@3.2.45: resolution: { - integrity: sha512-a1FIGgTuvLN5gfbh7/dtYLSaXPBYLu33l2sc0auc55uNXqB6qXGzxu/12bEskONhYcx1BBwsqjWiSFbSJ3yLbg== + integrity: sha512-B4ttYDZkXqVuciN23WNuVnr6L8dKrxEvz74gaYTXbdybv9jLEYMagSm/nFBLin+32EGYKeZu/D393r2EGAzeNg== } engines: { node: ">=14.19.0" } peerDependencies: vue: ^2.7.0 || ^3.0.0 dependencies: "@rollup/pluginutils": 4.2.1 - "@vue-macros/common": 0.13.3 - unplugin: 0.10.2 + "@vue-macros/common": 0.13.4 + unplugin: 1.0.0 vue: 3.2.45 dev: true - /@vue-macros/define-slots/0.0.5_vue@3.2.45: + /@vue-macros/define-slots/0.0.6_vue@3.2.45: resolution: { - integrity: sha512-+CS2MTH1fBeHbiZzThn6aXmrcbPRiuG29yWI6ugMarpIxwvVWXrPcvrWSE2BK/FSwcCR9Xfz7rETIo+BSjdo6A== + integrity: sha512-pK4P/oUjcrP/Rr5clsV2eZ53OJ3QlU2fZlnn91w++L0+lio+0M06ptr/IkHNVLNQ9U9Z43MkjHkMLX8Df8BknA== } engines: { node: ">=14.19.0" } peerDependencies: vue: ^2.7.0 || ^3.0.0 dependencies: "@rollup/pluginutils": 4.2.1 - "@vue-macros/common": 0.13.3 - unplugin: 0.10.2 + "@vue-macros/common": 0.13.4 + unplugin: 1.0.0 vue: 3.2.45 dev: true - /@vue-macros/hoist-static/0.12.7: + /@vue-macros/hoist-static/1.0.0: resolution: { - integrity: sha512-YRQ1zcy/sH13dgURk4PtazrLzMMnRDwg2N5xyeozaUWNczJmC65OWA5W9wK60WcxHu4pHRR/p7x+jive/bui9w== + integrity: sha512-NcFVAfKM9UjChOXy+yno4vhTsSHT6qUKbmd4/I8ucoiJT8IfFyGCwFoZZ8uqgjIwlzSUDxJ/vYoDRjiziTiNKg== } engines: { node: ">=14.19.0" } dependencies: "@rollup/pluginutils": 4.2.1 - "@vue-macros/common": 0.13.3 - unplugin: 0.10.2 + "@vue-macros/common": 0.13.4 + unplugin: 1.0.0 dev: true - /@vue-macros/named-template/0.0.5_vite@3.1.8+vue@3.2.45: + /@vue-macros/named-template/0.0.6_vite@3.1.8+vue@3.2.45: resolution: { - integrity: sha512-bZRUljNyvOOqeE9dyqXvKPQCLUCcPt1EkThmXqSbxagV29ohyviF8+CCs/8OdmNygLTBIChjP8DexQ3nUIFzUg== + integrity: sha512-nEoutSYbwu7QC+uWcs90rD28erP6xZ0aU4uYnrxTUnVcbga9xMchxcs3MgI/2ax6dz/EXf1f1utYXXpGgLi+Tw== } engines: { node: ">=14.19.0" } dependencies: "@rollup/pluginutils": 4.2.1 "@vitejs/plugin-vue": 3.2.0_vite@3.1.8+vue@3.2.45 - "@vue-macros/common": 0.13.3 + "@vue-macros/common": 0.13.4 "@vue/compiler-dom": 3.2.45 - unplugin: 0.10.2 + unplugin: 1.0.0 unplugin-combine: 0.2.8_vite@3.1.8 transitivePeerDependencies: - esbuild @@ -2109,16 +2109,29 @@ packages: - webpack dev: true - /@vue-macros/setup-component/0.12.7_vite@3.1.8: + /@vue-macros/setup-block/0.0.1: resolution: { - integrity: sha512-L0WkJgw0QDwZh4tOjjKIDR0DMIybiOunsaxVqkJjicTb2YaiRUSLq4Wadl8Ttrsd0IEfI51CSlg7Sx0/dKLrlQ== + integrity: sha512-Zr7yudMN7Q+8Rb/4ZuZzNewHTejeH9fbt3104sFK53XqL4uLkDCz0fIG2AD9bR71RA+12H+yqn/jQ3vP4OaKGA== } engines: { node: ">=14.19.0" } dependencies: "@rollup/pluginutils": 4.2.1 - "@vue-macros/common": 0.13.3 - unplugin: 0.10.2 + "@vue-macros/common": 0.13.4 + "@vue/compiler-dom": 3.2.45 + unplugin: 1.0.0 + dev: true + + /@vue-macros/setup-component/0.12.8_vite@3.1.8: + resolution: + { + integrity: sha512-2tRMl8l8OYMpIRYsZyAZfH0dNT7CONMTcmdGEffJb5GvK8XOmdgGk7NFUhaQg3EEnk1SUq1Kdcx+gyH/a0qE4A== + } + engines: { node: ">=14.19.0" } + dependencies: + "@rollup/pluginutils": 4.2.1 + "@vue-macros/common": 0.13.4 + unplugin: 1.0.0 unplugin-combine: 0.2.8_vite@3.1.8 transitivePeerDependencies: - esbuild @@ -2127,28 +2140,28 @@ packages: - webpack dev: true - /@vue-macros/setup-sfc/0.12.7: + /@vue-macros/setup-sfc/0.12.8: resolution: { - integrity: sha512-2RyeAEanl2MLeIoyfBKWSpJgXHjAazubF02hO7nbDCf2FgKqWB0Vu8NwyMZaQPNCWJuE4azLEodg8XBMJxyUKg== + integrity: sha512-eOQxlY53GD/WkJrDHpDvHecWQ70Cw9aSYwS9eT1dQ9vWJVeJ/2R96z09GfYKz6cr9T00OPeZjftU5sC1FO+3xA== } engines: { node: ">=14.19.0" } dependencies: "@rollup/pluginutils": 4.2.1 - "@vue-macros/common": 0.13.3 - unplugin: 0.10.2 + "@vue-macros/common": 0.13.4 + unplugin: 1.0.0 dev: true - /@vue-macros/short-emits/0.12.8: + /@vue-macros/short-emits/1.0.1: resolution: { - integrity: sha512-av/dqgPtU4EomWHHJPbGeuoYavCX2QTE0cd7Ka0dSuXuGgMhTN7feOv+sqsN8003yfOaPSBt6R+N/fy+T99GMA== + integrity: sha512-iyCZu35uPOAUJOPrmJrc3pQdY8TswoRrF4Kfcga7xUPvE5ck0Yq4pmOIE+NKz/pGQzzOkxC1qMDc2kaoJ2qAzg== } engines: { node: ">=14.19.0" } dependencies: "@rollup/pluginutils": 4.2.1 - "@vue-macros/common": 0.13.3 - unplugin: 0.10.2 + "@vue-macros/common": 0.13.4 + unplugin: 1.0.0 dev: true /@vue/babel-helper-vue-transform-on/1.0.2: @@ -2347,15 +2360,15 @@ packages: vue-demi: 0.13.11_vue@3.2.45 dev: false - /@vueuse/core/9.5.0_vue@3.2.45: + /@vueuse/core/9.6.0_vue@3.2.45: resolution: { - integrity: sha512-6GsWBsJHEb3sYw15mbLrcbslAVY45pkzjJYTKYKCXv88z7srAF0VEW0q+oXKsl58tCbqooplInahXFg8Yo1m4w== + integrity: sha512-qGUcjKQXHgN+jqXEgpeZGoxdCbIDCdVPz3QiF1uyecVGbMuM63o96I1GjYx5zskKgRI0FKSNsVWM7rwrRMTf6A== } dependencies: "@types/web-bluetooth": 0.0.16 - "@vueuse/metadata": 9.5.0 - "@vueuse/shared": 9.5.0_vue@3.2.45 + "@vueuse/metadata": 9.6.0 + "@vueuse/shared": 9.6.0_vue@3.2.45 vue-demi: 0.13.11_vue@3.2.45 transitivePeerDependencies: - "@vue/composition-api" @@ -2368,10 +2381,10 @@ packages: } dev: false - /@vueuse/metadata/9.5.0: + /@vueuse/metadata/9.6.0: resolution: { - integrity: sha512-4M1AyPZmIv41pym+K5+4wup3bKuYebbH8w8BROY1hmT7rIwcyS4tEL+UsGz0Hiu1FCOxcoBrwtAizc0YmBJjyQ== + integrity: sha512-sIC8R+kWkIdpi5X2z2Gk8TRYzmczDwHRhEFfCu2P+XW2JdPoXrziqsGpDDsN7ykBx4ilwieS7JUIweVGhvZ93w== } /@vueuse/motion/2.0.0-beta.12_vue@3.2.45: @@ -2413,10 +2426,10 @@ packages: vue-demi: 0.13.11_vue@3.2.45 dev: false - /@vueuse/shared/9.5.0_vue@3.2.45: + /@vueuse/shared/9.6.0_vue@3.2.45: resolution: { - integrity: sha512-HnnCWU1Vg9CVWRCcI8ohDKDRB2Sc4bTgT1XAIaoLSfVHHn+TKbrox6pd3klCSw4UDxkhDfOk8cAdcK+Z5KleCA== + integrity: sha512-/eDchxYYhkHnFyrb00t90UfjCx94kRHxc7J1GtBCqCG4HyPMX+krV9XJgVtWIsAMaxKVU4fC8NSUviG1JkwhUQ== } dependencies: vue-demi: 0.13.11_vue@3.2.45 @@ -4060,7 +4073,7 @@ packages: "@popperjs/core": /@sxzz/popperjs-es/2.11.7 "@types/lodash": 4.14.189 "@types/lodash-es": 4.17.6 - "@vueuse/core": 9.5.0_vue@3.2.45 + "@vueuse/core": 9.6.0_vue@3.2.45 async-validator: 4.2.5 dayjs: 1.11.6 escape-html: 1.0.3 @@ -8778,42 +8791,43 @@ packages: vite: 3.1.8_sass@1.56.1+terser@5.15.1 dev: true - /unplugin-vue-define-options/0.12.7: + /unplugin-vue-define-options/1.0.0: resolution: { - integrity: sha512-relFORVPLDs4dd3ogEti5YyAqQ62XEieRgLu/OrDIRZdSZQ942pydf9ilfLFiFwCUt+EES/2Xl4EERtgP1T/og== + integrity: sha512-j90zM7NhZXBL5uMlHKzSOjvU98lFcIErdgAhj7bEEdvZarkwOkEUgMFsZDwStN9FEcMAiS/BTvcyGfItu3ry/g== } engines: { node: ">=14.19.0" } dependencies: "@rollup/pluginutils": 4.2.1 - "@vue-macros/common": 0.13.3 + "@vue-macros/common": 0.13.4 ast-walker-scope: 0.3.0 - unplugin: 0.10.2 + unplugin: 1.0.0 dev: true - /unplugin-vue-macros/0.16.3_33e425fbdcno4preplio4kvzwe: + /unplugin-vue-macros/1.0.3_5wosmox4cb7ovevlqdhap7knuu: resolution: { - integrity: sha512-ADdDS5EjHRZ2esEHSNBw7CS7QLWpqvNJIW0H5EqKgSvtQ+2Hnb8IeRVT0f4mR+wyQvl/ZrlpTs1GvZdsh8eSlw== + integrity: sha512-QONC2iP0JNmIpbpL2jwsY89Lq6oTZf8JSbhQSVGB7xu+/iY52ZdfEB/bysai3lS5ScTH3M4y0KQHWVcyxBof7g== } engines: { node: ">=14.19.0" } peerDependencies: vue: ^2.7.0 || ^3.2.25 dependencies: "@rollup/pluginutils": 4.2.1 - "@vue-macros/better-define": 0.1.0 - "@vue-macros/define-model": 0.14.0_@vueuse+core@9.5.0 - "@vue-macros/define-props": 0.0.2_vue@3.2.45 - "@vue-macros/define-render": 0.13.8_vue@3.2.45 - "@vue-macros/define-slots": 0.0.5_vue@3.2.45 - "@vue-macros/hoist-static": 0.12.7 - "@vue-macros/named-template": 0.0.5_vite@3.1.8+vue@3.2.45 - "@vue-macros/setup-component": 0.12.7_vite@3.1.8 - "@vue-macros/setup-sfc": 0.12.7 - "@vue-macros/short-emits": 0.12.8 + "@vue-macros/better-define": 1.0.0 + "@vue-macros/define-model": 1.0.0_@vueuse+core@9.6.0 + "@vue-macros/define-props": 0.0.3_vue@3.2.45 + "@vue-macros/define-render": 1.0.1_vue@3.2.45 + "@vue-macros/define-slots": 0.0.6_vue@3.2.45 + "@vue-macros/hoist-static": 1.0.0 + "@vue-macros/named-template": 0.0.6_vite@3.1.8+vue@3.2.45 + "@vue-macros/setup-block": 0.0.1 + "@vue-macros/setup-component": 0.12.8_vite@3.1.8 + "@vue-macros/setup-sfc": 0.12.8 + "@vue-macros/short-emits": 1.0.1 local-pkg: 0.4.2 unplugin-combine: 0.2.8_vite@3.1.8 - unplugin-vue-define-options: 0.12.7 + unplugin-vue-define-options: 1.0.0 vue: 3.2.45 transitivePeerDependencies: - "@vueuse/core" @@ -8835,6 +8849,18 @@ packages: webpack-virtual-modules: 0.4.6 dev: true + /unplugin/1.0.0: + resolution: + { + integrity: sha512-H5UnBUxfhTXBXGo2AwKsl0UaLSHzSNDZNehPQSgdhVfO/t+XAS1Yoj3vmLrrlBrS9ZwtH5tejbX/TCp5DcyCKg== + } + dependencies: + acorn: 8.8.1 + chokidar: 3.5.3 + webpack-sources: 3.2.3 + webpack-virtual-modules: 0.4.6 + dev: true + /update-browserslist-db/1.0.10_browserslist@4.21.4: resolution: {