From f32a7105c38ee455c4b165d48651ef19fc6948db Mon Sep 17 00:00:00 2001 From: ahaos <8406649+lhailgl@user.noreply.gitee.com> Date: Wed, 13 Dec 2023 10:35:55 +0000 Subject: [PATCH] =?UTF-8?q?!68=20=E4=BF=AE=E5=A4=8D=E5=8D=87=E7=BA=A7?= =?UTF-8?q?=E4=BE=9D=E8=B5=96=E5=B8=A6=E6=9D=A5=E7=9A=84=E9=97=AE=E9=A2=98?= =?UTF-8?q?=20*=20Merge=20remote-tracking=20branch=20'origin/dev'=20into?= =?UTF-8?q?=20dev=20*=20=E5=8D=87=E7=BA=A7=E4=BE=9D=E8=B5=96=20*=20Merge?= =?UTF-8?q?=20remote-tracking=20branch=20'origin/ts'=20into=20ts=20*=20?= =?UTF-8?q?=E5=8D=87=E7=BA=A7=E4=BE=9D=E8=B5=96=20*=20Merge=20branch=20'de?= =?UTF-8?q?v'=20of=20gitee.com:JavaLionLi/plus-ui=20into=20ts=20*=20?= =?UTF-8?q?=E5=8D=87=E7=BA=A7=E4=BE=9D=E8=B5=96=20*=20!61=20fix:=20?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E9=87=8D=E5=A4=8D=E7=8E=AF=E5=A2=83=E5=8F=98?= =?UTF-8?q?=E9=87=8FElUploadInstance=20*=20fix:=20=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E9=87=8D=E5=A4=8D=E7=8E=AF=E5=A2=83=E5=8F=98=E9=87=8FElUploadI?= =?UTF-8?q?nstance?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .prettierrc | 2 +- package.json | 20 ++--- src/App.vue | 2 +- src/components/BuildCode/render.vue | 4 +- src/components/IconSelect/index.vue | 2 +- src/components/ImagePreview/index.vue | 2 +- src/components/SizeSelect/index.vue | 2 +- src/enums/LanguageEnum.ts | 5 ++ src/lang/index.ts | 7 +- src/layout/components/Settings/index.vue | 98 +++++++--------------- src/main.ts | 19 ----- src/permission.ts | 6 +- src/plugins/index.ts | 19 +++++ src/settings.ts | 9 +- src/store/modules/app.ts | 4 +- src/store/modules/settings.ts | 55 +++++------- src/types/global.d.ts | 82 +++++++++--------- src/types/module.d.ts | 20 ++--- src/utils/ruoyi.ts | 4 + src/views/system/user/index.vue | 5 +- src/views/system/user/profile/userInfo.vue | 6 +- src/views/tool/gen/genInfoForm.vue | 2 +- 22 files changed, 172 insertions(+), 203 deletions(-) create mode 100644 src/enums/LanguageEnum.ts diff --git a/.prettierrc b/.prettierrc index 0b00890..6ca3ce5 100644 --- a/.prettierrc +++ b/.prettierrc @@ -4,7 +4,7 @@ "useTabs": false, "semi": true, "singleQuote": true, - "quoteProps": "as-needed", + "quoteProps": "preserve", "jsxSingleQuote": false, "bracketSameLine": false, "trailingComma": "none", diff --git a/package.json b/package.json index 95cd2a1..3b1c1d6 100644 --- a/package.json +++ b/package.json @@ -18,19 +18,19 @@ "url": "https://gitee.com/JavaLionLi/plus-ui.git" }, "dependencies": { - "@element-plus/icons-vue": "2.1.0", + "@element-plus/icons-vue": "2.3.1", "@vueup/vue-quill": "1.2.0", "@vueuse/core": "10.7.0", "animate.css": "4.1.1", "await-to-js": "^3.0.0", "axios": "^1.3.4", "crypto-js": "^4.1.1", - "echarts": "5.4.0", + "echarts": "5.4.3", "element-plus": "2.4.3", "file-saver": "2.0.5", "fuse.js": "6.6.2", - "js-cookie": "3.0.1", - "jsencrypt": "3.3.1", + "js-cookie": "3.0.5", + "jsencrypt": "3.3.2", "nprogress": "0.2.0", "path-browserify": "1.0.1", "path-to-regexp": "6.2.0", @@ -38,14 +38,14 @@ "screenfull": "6.0.0", "vform3-builds": "3.0.8", "vue": "3.3.11", - "vue-cropper": "1.0.3", + "vue-cropper": "1.1.1", "vue-i18n": "9.2.2", "vue-router": "4.2.5", "vue-types": "5.1.1" }, "devDependencies": { - "@iconify/json": "^2.2.40", - "@intlify/unplugin-vue-i18n": "0.8.2", + "@iconify/json": "^2.2.157", + "@intlify/unplugin-vue-i18n": "1.6.0", "@types/crypto-js": "^4.1.1", "@types/file-saver": "2.0.5", "@types/js-cookie": "3.0.3", @@ -57,7 +57,7 @@ "@unocss/preset-attributify": "^0.58.0", "@unocss/preset-icons": "^0.58.0", "@unocss/preset-uno": "^0.58.0", - "@vue/compiler-sfc": "3.2.45", + "@vue/compiler-sfc": "3.3.9", "@vitejs/plugin-vue": "4.5.2", "autoprefixer": "10.4.14", "eslint": "8.55.0", @@ -72,13 +72,13 @@ "husky": "7.0.4", "postcss": "^8.4.21", "prettier": "3.1.1", - "sass": "1.56.1", + "sass": "1.69.5", "typescript": "5.2.2", "unocss": "^0.58.0", "unplugin-auto-import": "0.17.2", "unplugin-icons": "0.18.1", "unplugin-vue-components": "0.26.0", - "unplugin-vue-setup-extend-plus": "0.4.9", + "unplugin-vue-setup-extend-plus": "1.0.0", "vite-plugin-compression": "0.5.1", "vite-plugin-svg-icons": "2.0.1", "vitest": "^0.29.7", diff --git a/src/App.vue b/src/App.vue index 0b058d7..a93790a 100644 --- a/src/App.vue +++ b/src/App.vue @@ -10,7 +10,7 @@ import { handleThemeStyle } from '@/utils/theme'; import useAppStore from '@/store/modules/app'; const appStore = useAppStore(); -const size = computed(() => appStore.size as any); +const size = computed(() => appStore.size); onMounted(() => { nextTick(() => { diff --git a/src/components/BuildCode/render.vue b/src/components/BuildCode/render.vue index 3c0865c..aeb9312 100644 --- a/src/components/BuildCode/render.vue +++ b/src/components/BuildCode/render.vue @@ -18,7 +18,7 @@ const props = withDefaults(defineProps(), { isView: false }); -const vFormRef = ref(null); +const vFormRef = ref(); // 获取表单数据-异步 const getFormData = () => { return vFormRef.value.getFormData(); @@ -29,7 +29,7 @@ const getFormData = () => { * @param {表单配置} formConf * formConfig:{ formTemplate:表单模板,formData:表单数据,hiddenField:需要隐藏的字段字符串集合,disabledField:需要禁用的自读字符串集合} */ -const initForm = (formConf) => { +const initForm = (formConf: any) => { const { formTemplate, formData, hiddenField, disabledField } = toRaw(formConf); if (formTemplate) { vFormRef.value.setFormJson(formTemplate); diff --git a/src/components/IconSelect/index.vue b/src/components/IconSelect/index.vue index 7e392e7..3bfde4d 100644 --- a/src/components/IconSelect/index.vue +++ b/src/components/IconSelect/index.vue @@ -1,5 +1,5 @@