From 0d2b882ff74add3a586f715b791b63d3213ff9e4 Mon Sep 17 00:00:00 2001 From: bqy_fe <1743369777@qq.com> Date: Sat, 2 Apr 2022 00:43:44 +0800 Subject: [PATCH] chore: upgrade deps --- package.json | 15 +- src/components/basic/image-preview/index.tsx | 2 +- .../core/schema-form/src/schema-form.ts | 2 +- .../demos/form/basic-form/form-schema.tsx | 9 +- src/views/demos/form/basic-form/index.vue | 1 + .../components/multiple-cascader/index.vue | 8 +- .../multiple-cascader/node-panel.vue | 3 + vue.config.js | 75 +++---- windi.config.ts | 2 +- yarn.lock | 186 +++++++++--------- 10 files changed, 152 insertions(+), 151 deletions(-) diff --git a/package.json b/package.json index 51a574855..7657e9747 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,7 @@ "build:test": "vue-cli-service build --mode test", "build:preview": "npm run build && npx serve -s dist", "build:prod": "vue-cli-service build --mode production", + "build:report": "vue-cli-service build --report && npx live-server --open=dist/report.html", "clean:lib": "npx rimraf node_modules", "deploy": "npm run build && npx gh-pages -d dist", "lint": "vue-cli-service lint", @@ -29,8 +30,8 @@ }, "dependencies": { "@ant-design/icons-vue": "^6.1.0", - "@vueuse/core": "^8.2.0", - "ant-design-vue": "3.1.0-rc.2", + "@vueuse/core": "^8.2.3", + "ant-design-vue": "3.1.0-rc.6", "axios": "^0.26.1", "core-js": "^3.21.1", "dayjs": "^1.11.0", @@ -39,7 +40,7 @@ "mitt": "^3.0.0", "mockjs": "^1.1.0", "nprogress": "^1.0.0-1", - "pinia": "2.0.12", + "pinia": "2.0.13", "qs": "^6.10.3", "socket.io-client": "4.4.1", "sortablejs": "^1.15.0", @@ -55,8 +56,8 @@ "@types/lodash-es": "^4.17.6", "@types/node": "^17.0.23", "@types/webpack-env": "^1.16.3", - "@typescript-eslint/eslint-plugin": "^5.16.0", - "@typescript-eslint/parser": "^5.16.0", + "@typescript-eslint/eslint-plugin": "^5.17.0", + "@typescript-eslint/parser": "^5.17.0", "@vue/cli-plugin-babel": "^5.0.4", "@vue/cli-plugin-eslint": "^5.0.4", "@vue/cli-plugin-router": "^5.0.4", @@ -65,7 +66,6 @@ "@vue/eslint-config-typescript": "^10.0.0", "babel-plugin-import": "^1.13.3", "commitizen": "^4.2.4", - "compression-webpack-plugin": "^9.2.0", "conventional-changelog-cli": "^2.2.2", "eslint": "^8.12.0", "eslint-config-prettier": "^8.5.0", @@ -80,6 +80,7 @@ "postcss-html": "^1.3.0", "prettier": "^2.6.1", "regenerator-runtime": "^0.13.9", + "speed-measure-webpack-plugin": "^1.5.0", "stylelint": "^14.6.1", "stylelint-config-html": "^1.0.0", "stylelint-config-prettier": "^9.0.3", @@ -88,7 +89,7 @@ "stylelint-order": "^5.0.0", "svg-sprite-loader": "^6.0.11", "typescript": "^4.6.3", - "unplugin-vue-define-options": "^0.5.0", + "unplugin-vue-define-options": "^0.6.0", "vue-cli-plugin-windicss": "^1.1.3", "vue-eslint-parser": "^8.3.0" }, diff --git a/src/components/basic/image-preview/index.tsx b/src/components/basic/image-preview/index.tsx index be40ee1a1..cf1dcb8d5 100644 --- a/src/components/basic/image-preview/index.tsx +++ b/src/components/basic/image-preview/index.tsx @@ -10,7 +10,7 @@ interface PreviewType extends ImagePreviewType { export default defineComponent({ props: { - ...imageProps, + ...imageProps(), preview: { type: Object as PropType, }, diff --git a/src/components/core/schema-form/src/schema-form.ts b/src/components/core/schema-form/src/schema-form.ts index d5628e7c8..87770b4d5 100644 --- a/src/components/core/schema-form/src/schema-form.ts +++ b/src/components/core/schema-form/src/schema-form.ts @@ -10,7 +10,7 @@ import { isObject } from '@/utils/is'; export const aFormPropKeys = Object.keys(formProps); export const schemaFormProps = { - ...formProps, + ...formProps(), layout: { type: String as PropType, default: 'horizontal', diff --git a/src/views/demos/form/basic-form/form-schema.tsx b/src/views/demos/form/basic-form/form-schema.tsx index a3bbc99af..18fea7741 100644 --- a/src/views/demos/form/basic-form/form-schema.tsx +++ b/src/views/demos/form/basic-form/form-schema.tsx @@ -334,14 +334,9 @@ export const schemas: FormSchema[] = [ }, { field: 'field34', - component: ({ formModel, schema, field }) => { + component: ({ schema }) => { const options = schema.componentProps?.requestResult || []; - return ( - - ); + return ; }, label: '远程Radio', helpMessage: ['RadioGroup组件', '使用接口提供的数据生成选项'], diff --git a/src/views/demos/form/basic-form/index.vue b/src/views/demos/form/basic-form/index.vue index e1844fa61..653e83b52 100644 --- a/src/views/demos/form/basic-form/index.vue +++ b/src/views/demos/form/basic-form/index.vue @@ -116,6 +116,7 @@ , 3, ); + console.log('values', values); } diff --git a/src/views/system/permission/menu/components/multiple-cascader/index.vue b/src/views/system/permission/menu/components/multiple-cascader/index.vue index caecb4972..28b250f49 100644 --- a/src/views/system/permission/menu/components/multiple-cascader/index.vue +++ b/src/views/system/permission/menu/components/multiple-cascader/index.vue @@ -1,5 +1,5 @@