Browse Source

fix: 修复类型错误

kailong321200875 1 year ago
parent
commit
26dc886f8c
2 changed files with 27 additions and 27 deletions
  1. 23 23
      package.json
  2. 4 4
      src/components/Form/index.ts

+ 23 - 23
package.json

@@ -33,10 +33,10 @@
     "@zxcvbn-ts/core": "^3.0.1",
     "animate.css": "^4.1.1",
     "axios": "^1.4.0",
-    "dayjs": "^1.11.7",
+    "dayjs": "^1.11.8",
     "echarts": "^5.4.2",
     "echarts-wordcloud": "^2.1.0",
-    "element-plus": "^2.3.5",
+    "element-plus": "^2.3.6",
     "intro.js": "^7.0.1",
     "lodash-es": "^4.17.21",
     "mitt": "^3.0.0",
@@ -49,57 +49,57 @@
     "url": "^0.11.0",
     "vue": "3.3.4",
     "vue-i18n": "9.2.2",
-    "vue-router": "^4.2.1",
+    "vue-router": "^4.2.2",
     "vue-types": "^5.0.3",
     "web-storage-cache": "^1.1.1"
   },
   "devDependencies": {
-    "@commitlint/cli": "^17.6.3",
-    "@commitlint/config-conventional": "^17.6.3",
-    "@iconify/json": "^2.2.68",
-    "@intlify/unplugin-vue-i18n": "^0.10.0",
+    "@commitlint/cli": "^17.6.5",
+    "@commitlint/config-conventional": "^17.6.5",
+    "@iconify/json": "^2.2.74",
+    "@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.3",
+    "@types/node": "^20.2.5",
     "@types/nprogress": "^0.2.0",
     "@types/qrcode": "^1.5.0",
     "@types/qs": "^6.9.7",
-    "@typescript-eslint/eslint-plugin": "^5.59.7",
-    "@typescript-eslint/parser": "^5.59.7",
-    "@unocss/transformer-variant-group": "^0.52.1",
-    "@vitejs/plugin-legacy": "^4.0.3",
+    "@typescript-eslint/eslint-plugin": "^5.59.8",
+    "@typescript-eslint/parser": "^5.59.8",
+    "@unocss/transformer-variant-group": "^0.52.7",
+    "@vitejs/plugin-legacy": "^4.0.4",
     "@vitejs/plugin-vue": "^4.2.3",
     "@vitejs/plugin-vue-jsx": "^3.0.1",
-    "@vue-macros/volar": "^0.9.8",
+    "@vue-macros/volar": "^0.10.2",
     "autoprefixer": "^10.4.14",
     "consola": "^3.1.0",
-    "eslint": "^8.41.0",
+    "eslint": "^8.42.0",
     "eslint-config-prettier": "^8.8.0",
     "eslint-define-config": "^1.20.0",
     "eslint-plugin-prettier": "^4.2.1",
-    "eslint-plugin-vue": "^9.14.0",
+    "eslint-plugin-vue": "^9.14.1",
     "husky": "^8.0.3",
     "less": "^4.1.3",
     "lint-staged": "^13.2.2",
     "plop": "^3.1.2",
-    "postcss": "^8.4.23",
+    "postcss": "^8.4.24",
     "postcss-html": "^1.5.0",
     "postcss-less": "^6.0.0",
     "prettier": "^2.8.8",
     "rimraf": "^5.0.1",
-    "rollup": "^3.23.0",
-    "stylelint": "^15.6.2",
+    "rollup": "^3.23.1",
+    "stylelint": "^15.6.3",
     "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.5",
-    "typescript": "5.0.4",
-    "unocss": "^0.52.1",
-    "unplugin-vue-define-options": "^1.3.5",
-    "vite": "4.3.8",
+    "terser": "^5.17.7",
+    "typescript": "5.1.3",
+    "unocss": "^0.52.7",
+    "unplugin-vue-define-options": "^1.3.7",
+    "vite": "4.3.9",
     "vite-plugin-ejs": "^1.6.4",
     "vite-plugin-eslint": "^1.8.1",
     "vite-plugin-mock": "2.9.6",

+ 4 - 4
src/components/Form/index.ts

@@ -1,8 +1,7 @@
 import Form from './src/Form.vue'
 import { ElForm } from 'element-plus'
-import { FormSchema, FormSetProps } from './src/types'
-export {
-  PlaceholderModel,
+import type { FormSchema, FormSetProps } from './src/types'
+export type {
   ComponentNameEnum,
   ComponentName,
   InputComponentProps,
@@ -31,7 +30,8 @@ export {
   FormValueType,
   FormItemProps,
   FormSchema,
-  FormProps
+  FormProps,
+  PlaceholderModel
 } from './src/types'
 
 export interface FormExpose {