From 097b32e1a9d92a609a66179d68b3dabe12f96b66 Mon Sep 17 00:00:00 2001 From: kailong321200875 <321200875@qq.com> Date: Mon, 19 Jun 2023 16:27:49 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8DForm=E5=B7=B2=E7=9F=A5?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 38 +- src/components/Form/src/Form.vue | 33 +- src/components/Form/src/types/index.ts | 20 + src/router/index.ts | 16 +- src/views/Components/Form/DefaultForm.vue | 2015 ++++++++++----------- src/views/Components/Form/RefForm.vue | 270 --- src/views/Components/Form/UseFormDemo.vue | 21 +- 7 files changed, 1070 insertions(+), 1343 deletions(-) delete mode 100644 src/views/Components/Form/RefForm.vue diff --git a/package.json b/package.json index f1d1e34..3a58bee 100644 --- a/package.json +++ b/package.json @@ -27,10 +27,10 @@ }, "dependencies": { "@iconify/iconify": "^3.1.0", - "@vueuse/core": "^10.1.2", + "@vueuse/core": "^10.2.0", "@wangeditor/editor": "^5.1.23", "@wangeditor/editor-for-vue": "^5.1.10", - "@zxcvbn-ts/core": "^3.0.1", + "@zxcvbn-ts/core": "^3.0.2", "animate.css": "^4.1.1", "axios": "^1.4.0", "dayjs": "^1.11.8", @@ -42,43 +42,43 @@ "mitt": "^3.0.0", "mockjs": "^1.1.0", "nprogress": "^0.2.0", - "pinia": "^2.1.3", + "pinia": "^2.1.4", "pinia-plugin-persist": "^1.0.0", "qrcode": "^1.5.3", "qs": "^6.11.2", - "url": "^0.11.0", + "url": "^0.11.1", "vue": "3.3.4", "vue-i18n": "9.2.2", "vue-router": "^4.2.2", - "vue-types": "^5.0.3", + "vue-types": "^5.0.4", "web-storage-cache": "^1.1.1" }, "devDependencies": { "@commitlint/cli": "^17.6.5", "@commitlint/config-conventional": "^17.6.5", - "@iconify/json": "^2.2.74", + "@iconify/json": "^2.2.80", "@intlify/unplugin-vue-i18n": "^0.11.0", "@purge-icons/generated": "^0.9.0", "@types/intro.js": "^5.1.1", "@types/lodash-es": "^4.17.7", - "@types/node": "^20.2.5", + "@types/node": "^20.3.1", "@types/nprogress": "^0.2.0", "@types/qrcode": "^1.5.0", "@types/qs": "^6.9.7", - "@typescript-eslint/eslint-plugin": "^5.59.9", - "@typescript-eslint/parser": "^5.59.9", - "@unocss/transformer-variant-group": "^0.53.0", + "@typescript-eslint/eslint-plugin": "^5.59.11", + "@typescript-eslint/parser": "^5.59.11", + "@unocss/transformer-variant-group": "^0.53.1", "@vitejs/plugin-legacy": "^4.0.4", "@vitejs/plugin-vue": "^4.2.3", "@vitejs/plugin-vue-jsx": "^3.0.1", - "@vue-macros/volar": "^0.10.2", + "@vue-macros/volar": "^0.11.0", "autoprefixer": "^10.4.14", "consola": "^3.1.0", - "eslint": "^8.42.0", + "eslint": "^8.43.0", "eslint-config-prettier": "^8.8.0", "eslint-define-config": "^1.20.0", "eslint-plugin-prettier": "^4.2.1", - "eslint-plugin-vue": "^9.14.1", + "eslint-plugin-vue": "^9.15.0", "husky": "^8.0.3", "less": "^4.1.3", "lint-staged": "^13.2.2", @@ -88,17 +88,17 @@ "postcss-less": "^6.0.0", "prettier": "^2.8.8", "rimraf": "^5.0.1", - "rollup": "^3.23.1", - "stylelint": "^15.7.0", + "rollup": "^3.25.1", + "stylelint": "^15.8.0", "stylelint-config-html": "^1.1.0", "stylelint-config-prettier": "^9.0.5", "stylelint-config-recommended": "^12.0.0", "stylelint-config-standard": "^33.0.0", "stylelint-order": "^6.0.3", - "terser": "^5.17.7", + "terser": "^5.18.0", "typescript": "5.1.3", - "unocss": "^0.53.0", - "unplugin-vue-define-options": "^1.3.7", + "unocss": "^0.53.1", + "unplugin-vue-define-options": "^1.3.8", "vite": "4.3.9", "vite-plugin-ejs": "^1.6.4", "vite-plugin-eslint": "^1.8.1", @@ -107,7 +107,7 @@ "vite-plugin-purge-icons": "^0.9.2", "vite-plugin-style-import": "2.0.0", "vite-plugin-svg-icons": "^2.0.1", - "vue-tsc": "^1.6.5" + "vue-tsc": "^1.8.0" }, "engines": { "node": ">= 14.18.0" diff --git a/src/components/Form/src/Form.vue b/src/components/Form/src/Form.vue index 6b5bb4b..752ed84 100644 --- a/src/components/Form/src/Form.vue +++ b/src/components/Form/src/Form.vue @@ -1,14 +1,5 @@ - - diff --git a/src/views/Components/Form/UseFormDemo.vue b/src/views/Components/Form/UseFormDemo.vue index 84bc62e..dcd09a9 100644 --- a/src/views/Components/Form/UseFormDemo.vue +++ b/src/views/Components/Form/UseFormDemo.vue @@ -1,5 +1,5 @@ + +