From fdbaf55d23e54ea8c20535de2e21b8cef7deaa4a Mon Sep 17 00:00:00 2001
From: bqy_fe <1743369777@qq.com>
Date: Tue, 5 Apr 2022 16:39:05 +0800
Subject: [PATCH] fix: some ts type issue
---
package.json | 8 +-
src/assets/icons/moon.svg | 1 +
src/assets/icons/sun.svg | 1 +
src/components/basic/button/button.vue | 8 +-
src/components/basic/svg-icon/svg-icon.vue | 4 +
.../src/components/table-action.vue | 2 +-
.../table-settings/column-setting.vue | 9 +-
src/components/core/schema-form/src/helper.ts | 4 +-
.../core/schema-form/src/schema-form-item.vue | 8 +-
.../core/schema-form/src/types/form.ts | 9 +-
.../core/schema-form/src/types/formItem.ts | 7 -
.../core/schema-form/src/types/index.ts | 1 -
src/layout/header/index.vue | 10 +-
src/layout/menu/menu-item.vue | 30 ++--
src/layout/menu/menu.vue | 24 ++--
src/views/demos/tables/search-table/index.vue | 2 +-
yarn.lock | 132 +++++++++---------
17 files changed, 137 insertions(+), 123 deletions(-)
create mode 100644 src/assets/icons/moon.svg
create mode 100644 src/assets/icons/sun.svg
delete mode 100644 src/components/core/schema-form/src/types/formItem.ts
diff --git a/package.json b/package.json
index 7657e9747..c4729b607 100644
--- a/package.json
+++ b/package.json
@@ -30,7 +30,7 @@
},
"dependencies": {
"@ant-design/icons-vue": "^6.1.0",
- "@vueuse/core": "^8.2.3",
+ "@vueuse/core": "^8.2.4",
"ant-design-vue": "3.1.0-rc.6",
"axios": "^0.26.1",
"core-js": "^3.21.1",
@@ -56,8 +56,8 @@
"@types/lodash-es": "^4.17.6",
"@types/node": "^17.0.23",
"@types/webpack-env": "^1.16.3",
- "@typescript-eslint/eslint-plugin": "^5.17.0",
- "@typescript-eslint/parser": "^5.17.0",
+ "@typescript-eslint/eslint-plugin": "^5.18.0",
+ "@typescript-eslint/parser": "^5.18.0",
"@vue/cli-plugin-babel": "^5.0.4",
"@vue/cli-plugin-eslint": "^5.0.4",
"@vue/cli-plugin-router": "^5.0.4",
@@ -78,7 +78,7 @@
"lint-staged": "^12.3.7",
"path-browserify": "^1.0.1",
"postcss-html": "^1.3.0",
- "prettier": "^2.6.1",
+ "prettier": "^2.6.2",
"regenerator-runtime": "^0.13.9",
"speed-measure-webpack-plugin": "^1.5.0",
"stylelint": "^14.6.1",
diff --git a/src/assets/icons/moon.svg b/src/assets/icons/moon.svg
new file mode 100644
index 000000000..42ccf14bb
--- /dev/null
+++ b/src/assets/icons/moon.svg
@@ -0,0 +1 @@
+
diff --git a/src/assets/icons/sun.svg b/src/assets/icons/sun.svg
new file mode 100644
index 000000000..b09cb7747
--- /dev/null
+++ b/src/assets/icons/sun.svg
@@ -0,0 +1 @@
+
diff --git a/src/components/basic/button/button.vue b/src/components/basic/button/button.vue
index c6969896c..b9981bbdc 100644
--- a/src/components/basic/button/button.vue
+++ b/src/components/basic/button/button.vue
@@ -5,15 +5,17 @@
:type="buttonType"
:class="[`ant-btn-${type}`]"
>
-
+