Explorar o código

chore: update deps (#3602)

* chore: up vue 3.4.13 antdv 4.1.0

* fix: stylelint

* chore: update deps

* feat: vite-html

* fix: eslint

* fix: type check

---------

Co-authored-by: invalid w <wangjuesix@gmail.com>
xingyu hai 1 ano
pai
achega
0cb379e5ab

+ 6 - 6
internal/eslint-config/package.json

@@ -37,14 +37,14 @@
     "stub": "pnpm unbuild --stub"
   },
   "devDependencies": {
-    "@typescript-eslint/eslint-plugin": "^6.17.0",
-    "@typescript-eslint/parser": "^6.17.0",
+    "@typescript-eslint/eslint-plugin": "^7.0.1",
+    "@typescript-eslint/parser": "^7.0.1",
     "eslint": "^8.56.0",
     "eslint-config-prettier": "^9.1.0",
     "eslint-plugin-import": "^2.29.1",
-    "eslint-plugin-prettier": "^5.1.2",
-    "eslint-plugin-simple-import-sort": "^10.0.0",
-    "eslint-plugin-vue": "^9.19.2",
-    "vue-eslint-parser": "^9.3.2"
+    "eslint-plugin-prettier": "^5.1.3",
+    "eslint-plugin-simple-import-sort": "^12.0.0",
+    "eslint-plugin-vue": "^9.21.1",
+    "vue-eslint-parser": "^9.4.2"
   }
 }

+ 4 - 4
internal/stylelint-config/package.json

@@ -32,12 +32,12 @@
     "stub": "pnpm unbuild --stub"
   },
   "devDependencies": {
-    "postcss": "^8.4.33",
-    "postcss-html": "^1.5.0",
+    "postcss": "^8.4.35",
+    "postcss-html": "^1.6.0",
     "postcss-less": "^6.0.0",
     "postcss-scss": "^4.0.9",
-    "prettier": "^3.1.1",
-    "stylelint": "^16.1.0",
+    "prettier": "^3.2.5",
+    "stylelint": "^16.2.1",
     "stylelint-config-property-sort-order-smacss": "^10.0.0",
     "stylelint-config-recommended-scss": "^14.0.0",
     "stylelint-config-recommended-vue": "^1.5.0",

+ 2 - 2
internal/ts-config/package.json

@@ -20,7 +20,7 @@
     "node-server.json"
   ],
   "dependencies": {
-    "@types/node": "^20.10.6",
-    "vite": "^5.0.10"
+    "@types/node": "^20.11.19",
+    "vite": "^5.1.3"
   }
 }

+ 8 - 8
internal/vite-config/package.json

@@ -33,25 +33,25 @@
   },
   "dependencies": {
     "@ant-design/colors": "^7.0.2",
-    "vite": "^5.0.10"
+    "vite": "^5.1.3"
   },
   "devDependencies": {
     "@types/fs-extra": "^11.0.4",
-    "@vitejs/plugin-vue": "^5.0.2",
+    "@vitejs/plugin-vue": "^5.0.4",
     "@vitejs/plugin-vue-jsx": "^3.1.0",
-    "ant-design-vue": "^4.0.8",
+    "ant-design-vue": "^4.1.2",
     "dayjs": "^1.11.10",
-    "dotenv": "^16.3.1",
+    "dotenv": "^16.4.4",
     "fs-extra": "^11.2.0",
     "less": "^4.2.0",
     "picocolors": "^1.0.0",
     "pkg-types": "^1.0.3",
     "rollup-plugin-visualizer": "^5.12.0",
-    "sass": "^1.69.7",
-    "unocss": "0.58.3",
+    "sass": "^1.71.0",
+    "unocss": "0.58.5",
     "vite-plugin-compression": "^0.5.1",
-    "vite-plugin-dts": "^3.7.0",
-    "vite-plugin-html": "^3.2.1",
+    "vite-plugin-dts": "^3.7.2",
+    "vite-plugin-html": "^3.2.2",
     "vite-plugin-mock": "^2.9.6",
     "vite-plugin-purge-icons": "^0.10.0",
     "vite-plugin-svg-icons": "^2.0.1"

+ 0 - 1
internal/vite-config/src/plugins/html.ts

@@ -8,7 +8,6 @@ import { createHtmlPlugin } from 'vite-plugin-html';
 export function configHtmlPlugin({ isBuild }: { isBuild: boolean }) {
   const htmlPlugin: PluginOption[] = createHtmlPlugin({
     minify: isBuild,
-    viteNext: true,
   });
   return htmlPlugin;
 }

+ 27 - 27
package.json

@@ -70,14 +70,14 @@
   "dependencies": {
     "@ant-design/icons-vue": "^7.0.1",
     "@iconify/iconify": "^3.1.1",
-    "@logicflow/core": "^1.2.18",
-    "@logicflow/extension": "^1.2.19",
+    "@logicflow/core": "^1.2.22",
+    "@logicflow/extension": "^1.2.22",
     "@vben/hooks": "workspace:*",
-    "@vue/shared": "^3.4.5",
-    "@vueuse/core": "^10.7.1",
+    "@vue/shared": "^3.4.19",
+    "@vueuse/core": "^10.7.2",
     "@zxcvbn-ts/core": "^3.0.4",
-    "ant-design-vue": "^4.0.8",
-    "axios": "^1.6.4",
+    "ant-design-vue": "^4.1.2",
+    "axios": "^1.6.7",
     "codemirror": "^5.65.16",
     "cropperjs": "^1.6.1",
     "crypto-js": "^4.2.0",
@@ -96,54 +96,54 @@
     "qs": "^6.11.2",
     "resize-observer-polyfill": "^1.5.1",
     "showdown": "^2.1.0",
-    "sortablejs": "^1.15.1",
+    "sortablejs": "^1.15.2",
     "tinymce": "^5.10.9",
-    "unocss": "0.58.3",
-    "vditor": "^3.9.8",
-    "vue": "3.3.4",
-    "vue-i18n": "^9.8.0",
+    "unocss": "^0.58.5",
+    "vditor": "^3.9.9",
+    "vue": "^3.4.19",
+    "vue-i18n": "^9.9.1",
     "vue-json-pretty": "^2.3.0",
     "vue-router": "^4.2.5",
     "vue-types": "^5.1.1",
     "vuedraggable": "^4.1.0",
-    "vxe-table": "^4.5.17",
-    "vxe-table-plugin-export-xlsx": "^3.1.0",
-    "xe-utils": "^3.5.14",
+    "vxe-table": "^4.5.18",
+    "vxe-table-plugin-export-xlsx": "^4.0.1",
+    "xe-utils": "^3.5.20",
     "xlsx": "^0.18.5"
   },
   "devDependencies": {
-    "@commitlint/cli": "^18.4.4",
-    "@commitlint/config-conventional": "^18.4.4",
-    "@iconify/json": "^2.2.164",
+    "@commitlint/cli": "^18.6.1",
+    "@commitlint/config-conventional": "^18.6.2",
+    "@iconify/json": "^2.2.183",
     "@purge-icons/generated": "^0.10.0",
     "@types/codemirror": "^5.60.15",
-    "@types/crypto-js": "^4.2.1",
+    "@types/crypto-js": "^4.2.2",
     "@types/lodash-es": "^4.17.12",
     "@types/mockjs": "^1.0.10",
     "@types/nprogress": "^0.2.3",
     "@types/qrcode": "^1.5.5",
     "@types/qs": "^6.9.11",
     "@types/showdown": "^2.0.6",
-    "@types/sortablejs": "^1.15.7",
+    "@types/sortablejs": "^1.15.8",
     "@vben/eslint-config": "workspace:*",
     "@vben/stylelint-config": "workspace:*",
     "@vben/ts-config": "workspace:*",
     "@vben/types": "workspace:*",
     "@vben/vite-config": "workspace:*",
-    "@vue/compiler-sfc": "^3.4.5",
-    "@vue/test-utils": "^2.4.3",
+    "@vue/compiler-sfc": "^3.4.19",
+    "@vue/test-utils": "^2.4.4",
     "cross-env": "^7.0.3",
     "cz-git": "^1.8.0",
     "czg": "^1.8.0",
-    "husky": "^8.0.3",
-    "lint-staged": "15.2.0",
-    "prettier": "^3.1.1",
-    "prettier-plugin-packagejson": "^2.4.8",
+    "husky": "^9.0.11",
+    "lint-staged": "15.2.2",
+    "prettier": "^3.2.5",
+    "prettier-plugin-packagejson": "^2.4.11",
     "rimraf": "^5.0.5",
-    "turbo": "^1.11.3",
+    "turbo": "^1.12.4",
     "typescript": "^5.3.3",
     "unbuild": "^2.0.0",
-    "vite": "^5.0.10",
+    "vite": "^5.1.3",
     "vite-plugin-mock": "^2.9.6",
     "vue-tsc": "^1.8.27"
   },

+ 2 - 2
packages/hooks/package.json

@@ -30,9 +30,9 @@
     "lint": "pnpm eslint ."
   },
   "dependencies": {
-    "@vueuse/core": "^10.7.1",
+    "@vueuse/core": "^10.7.2",
     "lodash-es": "^4.17.21",
-    "vue": "3.3.4"
+    "vue": "^3.4.19"
   },
   "devDependencies": {
     "@vben/types": "workspace:*"

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 232 - 232
pnpm-lock.yaml


+ 1 - 2
src/components/Tree/style/index.less

@@ -6,8 +6,7 @@
   .ant-tree {
     .ant-tree-checkbox {
       margin-block-start: 0;
-      margin-inline-start: 4px;
-      margin-inline-end: 4px;
+      margin-inline: 4px 4px;
 
       & + span {
         padding-left: 4px;

+ 2 - 3
src/utils/props.ts

@@ -14,9 +14,8 @@ type ResolveProp<T> = ExtractPropTypes<{
   key: { type: T; required: true };
 }>['key'];
 type ResolvePropType<T> = ResolveProp<T> extends { type: infer V } ? V : ResolveProp<T>;
-type ResolvePropTypeWithReadonly<T> = Readonly<T> extends Readonly<Array<infer A>>
-  ? ResolvePropType<A[]>
-  : ResolvePropType<T>;
+type ResolvePropTypeWithReadonly<T> =
+  Readonly<T> extends Readonly<Array<infer A>> ? ResolvePropType<A[]> : ResolvePropType<T>;
 
 type IfUnknown<T, V> = [unknown] extends [T] ? V : T;
 

+ 0 - 1
src/views/demo/system/account/account.data.ts

@@ -128,7 +128,6 @@ export const accountFormSchema: FormSchema[] = [
     componentProps: {
       fieldNames: {
         label: 'deptName',
-        key: 'id',
         value: 'id',
       },
       getPopupContainer: () => document.body,

+ 0 - 1
src/views/demo/system/dept/dept.data.ts

@@ -77,7 +77,6 @@ export const formSchema: FormSchema[] = [
     componentProps: {
       fieldNames: {
         label: 'deptName',
-        key: 'id',
         value: 'id',
       },
       getPopupContainer: () => document.body,

+ 0 - 1
src/views/demo/system/menu/menu.data.ts

@@ -105,7 +105,6 @@ export const formSchema: FormSchema[] = [
     componentProps: {
       fieldNames: {
         label: 'menuName',
-        key: 'id',
         value: 'id',
       },
       getPopupContainer: () => document.body,

Algúns arquivos non se mostraron porque demasiados arquivos cambiaron neste cambio