diff --git a/.prettierrc b/.prettierrc index 0b0089043055ab82c1367dac1494b33ef9d697dc..6ca3ce50e67c2ad83f8152f280c5b5bc974e3d56 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 95cd2a13d4252e898ced204570c29da86c59b47b..3b1c1d64bf38db54878089293d90a257e01ef844 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 0b058d757e512de43df4cdf2537e47ed427769da..a93790af8edb3b0b4a1f9541026171f6f0d3febe 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 3c0865c2ef7dd9bd1e1a8107a94c4b8b4bf7f461..aeb9312bdc766422b57876a2fb4b7dd61d3dff4b 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 7e392e7520038d86321fa34213b40ffb9ce0d7e1..3bfde4dc016828253e91edbe5289c0659b72a55d 100644 --- a/src/components/IconSelect/index.vue +++ b/src/components/IconSelect/index.vue @@ -1,5 +1,5 @@