Browse Source

update vite 3.0.2

Michael Wang 2 years ago
parent
commit
693fd3bbc5
6 changed files with 259 additions and 250 deletions
  1. 7 3
      components.d.ts
  2. 17 17
      package.json
  3. 227 226
      pnpm-lock.yaml
  4. 2 2
      src/components/QmButton.vue
  5. 2 2
      src/features/mark/MarkChangeProfile.vue
  6. 4 0
      vite.config.ts

+ 7 - 3
components.d.ts

@@ -1,11 +1,14 @@
 // generated by unplugin-vue-components
 // We suggest you to commit this file into source control
-// Read more: https://github.com/vuejs/vue-next/pull/3399
+// Read more: https://github.com/vuejs/core/pull/3399
 import '@vue/runtime-core'
 
+export {}
+
 declare module '@vue/runtime-core' {
   export interface GlobalComponents {
     AButton: typeof import('ant-design-vue/es')['Button']
+    ACol: typeof import('ant-design-vue/es')['Col']
     AConfigProvider: typeof import('ant-design-vue/es')['ConfigProvider']
     ADropdown: typeof import('ant-design-vue/es')['Dropdown']
     AForm: typeof import('ant-design-vue/es')['Form']
@@ -18,9 +21,12 @@ declare module '@vue/runtime-core' {
     APopover: typeof import('ant-design-vue/es')['Popover']
     ARadio: typeof import('ant-design-vue/es')['Radio']
     ARadioGroup: typeof import('ant-design-vue/es')['RadioGroup']
+    ARow: typeof import('ant-design-vue/es')['Row']
+    ASelect: typeof import('ant-design-vue/es')['Select']
     ASlider: typeof import('ant-design-vue/es')['Slider']
     ASpin: typeof import('ant-design-vue/es')['Spin']
     ASwitch: typeof import('ant-design-vue/es')['Switch']
+    ATextarea: typeof import('ant-design-vue/es')['Textarea']
     ATooltip: typeof import('ant-design-vue/es')['Tooltip']
     CommonMarkHeader: typeof import('./src/components/CommonMarkHeader.vue')['default']
     PageError404: typeof import('./src/components/PageError404.vue')['default']
@@ -31,5 +37,3 @@ declare module '@vue/runtime-core' {
     ZoomPaper: typeof import('./src/components/ZoomPaper.vue')['default']
   }
 }
-
-export {}

+ 17 - 17
package.json

@@ -1,6 +1,6 @@
 {
   "name": "stmms-web",
-  "version": "1.3.7",
+  "version": "1.3.8",
   "private": "true",
   "scripts": {
     "start": "vite --host 0.0.0.0",
@@ -15,40 +15,40 @@
   },
   "dependencies": {
     "@ant-design/icons-vue": "^6.1.0",
-    "ant-design-vue": "^3.2.7",
+    "ant-design-vue": "^3.2.10",
     "axios": "^0.26.1",
     "axios-progress-bar": "^1.2.0",
-    "axios-retry": "^3.2.5",
+    "axios-retry": "^3.3.1",
     "custom-cursor.js": "1.3.6",
     "lodash-es": "^4.17.21",
     "mitt": "^3.0.0",
-    "moment": "^2.29.3",
-    "pinia": "^2.0.14",
-    "tailwindcss": "^3.1.4",
+    "moment": "^2.29.4",
+    "pinia": "^2.0.16",
+    "tailwindcss": "^3.1.6",
     "ua-parser-js": "^1.0.2",
     "viewerjs": "^1.10.5",
     "vue": "^3.2.37",
-    "vue-router": "^4.0.16"
+    "vue-router": "^4.1.2"
   },
   "devDependencies": {
     "@types/lodash-es": "^4.17.6",
-    "@types/node": "^18.0.0",
+    "@types/node": "^18.0.6",
     "@types/ua-parser-js": "^0.7.36",
-    "@typescript-eslint/eslint-plugin": "^5.29.0",
-    "@typescript-eslint/parser": "^5.29.0",
-    "@vitejs/plugin-vue": "^2.3.3",
+    "@typescript-eslint/eslint-plugin": "^5.30.7",
+    "@typescript-eslint/parser": "^5.30.7",
+    "@vitejs/plugin-vue": "^3.0.1",
     "@vue/runtime-core": "^3.2.37",
     "autoprefixer": "^10.4.7",
-    "eslint": "^8.18.0",
+    "eslint": "^8.20.0",
     "eslint-config-prettier": "^8.5.0",
-    "eslint-plugin-vue": "^9.1.1",
+    "eslint-plugin-vue": "^9.2.0",
     "postcss": "^8.4.14",
     "prettier": "^2.7.1",
     "typescript": "^4.7.4",
-    "unplugin-vue-components": "^0.19.6",
-    "vite": "^2.9.12",
-    "vue-eslint-parser": "^9.0.2",
-    "vue-tsc": "^0.37.9"
+    "unplugin-vue-components": "^0.21.1",
+    "vite": "^3.0.2",
+    "vue-eslint-parser": "^9.0.3",
+    "vue-tsc": "^0.38.8"
   },
   "vetur": {
     "tags": "vetur/tags.json",

File diff suppressed because it is too large
+ 227 - 226
pnpm-lock.yaml


+ 2 - 2
src/components/QmButton.vue

@@ -27,10 +27,10 @@ let parentOnClick = attrs.onClick as (e: Event) => void;
 delete newAttrs["onClick"];
 
 let inInterval = $ref(false);
-const insideClick = (e: PointerEvent) => {
+const insideClick = (e: MouseEvent | PointerEvent) => {
   // console.log(e.pointerType);
   // 不允许键盘触发按钮事件,因为全局监听键盘事件的太多了
-  if (e.pointerType === "") return;
+  if (e instanceof PointerEvent && e.pointerType === "") return;
   inInterval = true;
   // false warning
   // eslint-disable-next-line @typescript-eslint/no-unsafe-argument

+ 2 - 2
src/features/mark/MarkChangeProfile.vue

@@ -11,8 +11,8 @@
     <a-form
       labelAlign="right"
       :labelCol="{ span: 4 }"
-      @keydown.stop
-      @keypress.stop
+      @keydown.stop=""
+      @keypress.stop=""
     >
       <a-form-item class="tw-mb-2" :required="true" label="姓名">
         <a-input v-model:value="user.name" placeholder="姓名" />

+ 4 - 0
vite.config.ts

@@ -49,6 +49,10 @@ export default defineConfig({
   },
   build: {
     ssr: false,
+    commonjsOptions: { include: [] },
+  },
+  optimizeDeps: {
+    disabled: false,
   },
   // define: {
   //   __VUE_PROD_DEVTOOLS__: true, // no effect

Some files were not shown because too many files changed in this diff