diff --git a/.vscode/settings.json b/.vscode/settings.json index bbcf86946598f5383c459f9fb8eef501eb7e30bc..83b85b4134038e90a2a678f7ef20a368246aa5f8 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,6 +1,6 @@ { - "cSpell.words": ["vben", "windi"], "typescript.tsdk": "./node_modules/typescript/lib", + "typescript.enablePromptUseWorkspaceTsdk": true, "volar.tsPlugin": true, "volar.tsPluginStatus": false, //=========================================== @@ -10,23 +10,14 @@ "editor.tabSize": 2, "editor.defaultFormatter": "esbenp.prettier-vscode", "diffEditor.ignoreTrimWhitespace": false, - "editor.trimAutoWhitespace": true, //=========================================== //============= Other ======================= //=========================================== "breadcrumbs.enabled": true, "open-in-browser.default": "chrome", //=========================================== - //============= emmet ======================= - //=========================================== - "emmet.triggerExpansionOnTab": true, - "emmet.showAbbreviationSuggestions": true, - //=========================================== //============= files ======================= //=========================================== - "files.trimTrailingWhitespace": true, - // "files.insertFinalNewline": true, - // "files.trimFinalNewlines": true, "files.eol": "\n", "search.exclude": { "**/node_modules": true, @@ -49,9 +40,14 @@ "CHANGELOG.md": true, "examples": true, "res": true, - "screenshots": true + "screenshots": true, + "yarn-error.log": true, + "**/.yarn": true }, "files.exclude": { + "**/.cache": true, + "**/.editorconfig": true, + "**/.eslintcache": true, "**/bower_components": true, "**/.idea": true, "**/tmp": true, @@ -73,17 +69,6 @@ }, "stylelint.enable": true, "stylelint.packageManager": "yarn", - // =========================================== - // ================ Vetur ==================== - // =========================================== - // "vetur.experimental.templateInterpolationService": true, - // "vetur.format.options.tabSize": 2, - // "vetur.languageFeatures.codeActions": false, - // "vetur.format.defaultFormatterOptions": { - // "js-beautify-html": { - // "wrap_attributes": "force-expand-multiline" - // } - // }, "liveServer.settings.donotShowInfoMsg": true, "telemetry.enableCrashReporter": false, "workbench.settings.enableNaturalLanguageSearch": false, @@ -132,5 +117,6 @@ "i18n-ally.pathMatcher": "{locale}/{namespaces}.{ext}", "i18n-ally.enabledParsers": ["ts"], "i18n-ally.sourceLanguage": "en", - "i18n-ally.enabledFrameworks": ["vue", "react"] + "i18n-ally.enabledFrameworks": ["vue", "react"], + "cSpell.words": ["vben", "windi", "browserslist", "esnext"] } diff --git a/package.json b/package.json index 2a3105e5ef5323d9be963bf5a420764bb0c6c148..5d0c29a2ab23c8204e567450a8cb469b6bc72b65 100644 --- a/package.json +++ b/package.json @@ -33,8 +33,8 @@ }, "dependencies": { "@iconify/iconify": "^2.0.1", - "@logicflow/core": "^0.4.13", - "@logicflow/extension": "^0.4.13", + "@logicflow/core": "^0.4.14", + "@logicflow/extension": "^0.4.14", "@vueuse/core": "^5.0.3", "@zxcvbn-ts/core": "^0.3.0", "ant-design-vue": "2.1.6", @@ -115,11 +115,11 @@ "vite-plugin-compression": "^0.2.5", "vite-plugin-html": "^2.0.7", "vite-plugin-imagemin": "^0.3.2", - "vite-plugin-mock": "^2.7.2", + "vite-plugin-mock": "^2.8.0", "vite-plugin-purge-icons": "^0.7.0", "vite-plugin-pwa": "^0.8.1", - "vite-plugin-style-import": "^0.10.1", - "vite-plugin-svg-icons": "^0.7.0", + "vite-plugin-style-import": "^1.0.0", + "vite-plugin-svg-icons": "^0.7.1", "vite-plugin-theme": "^0.8.1", "vite-plugin-windicss": "^1.0.4", "vue-eslint-parser": "^7.6.0", @@ -128,7 +128,7 @@ "resolutions": { "//": "Used to install imagemin dependencies, because imagemin may not be installed in China. If it is abroad, you can delete it", "bin-wrapper": "npm:bin-wrapper-china", - "rollup": "^2.51.2" + "rollup": "^2.52.0" }, "repository": { "type": "git", diff --git a/src/components/Dropdown/src/Dropdown.vue b/src/components/Dropdown/src/Dropdown.vue index f718f1f8cd7dfda01a112beb3042d2053ff7d3b2..91dbf5013bd36429067f1f27bd6d1072f8676866 100644 --- a/src/components/Dropdown/src/Dropdown.vue +++ b/src/components/Dropdown/src/Dropdown.vue @@ -53,7 +53,7 @@ * @type string[] */ trigger: { - type: [Array] as PropType, + type: [Array] as PropType<('contextmenu' | 'click' | 'hover')[]>, default: () => { return ['contextmenu']; }, diff --git a/src/components/FlowChart/src/FlowChartToolbar.vue b/src/components/FlowChart/src/FlowChartToolbar.vue index ea49f896c7bf807e963edd732286a772625e96d6..c88af5ca468090e358d60e224c4349714e4a9359 100644 --- a/src/components/FlowChart/src/FlowChartToolbar.vue +++ b/src/components/FlowChart/src/FlowChartToolbar.vue @@ -1,6 +1,6 @@