소스 검색

fix type warnings

Michael Wang 3 년 전
부모
커밋
9798eba3ed
3개의 변경된 파일136개의 추가작업 그리고 133개의 파일을 삭제
  1. 1 1
      package.json
  2. 5 2
      src/components/QmButton.vue
  3. 130 130
      yarn.lock

+ 1 - 1
package.json

@@ -11,7 +11,7 @@
     "serve": "vite preview"
   },
   "dependencies": {
-    "ant-design-vue": "^2.2.6",
+    "ant-design-vue": "2.2.6",
     "axios": "^0.21.4",
     "axios-progress-bar": "^1.2.0",
     "axios-retry": "^3.1.9",

+ 5 - 2
src/components/QmButton.vue

@@ -2,7 +2,7 @@
   <!-- FIXED: 从 vue 3.1.5 升级到 3.2.1 时这里出错了,slot也要有key -->
   <a-button v-bind="newAttrs" :loading="inInterval" @click="insideClick">
     <template v-for="(_, slot) of $slots" v-slot:[slot]="scope">
-      <slot :name="slot" v-bind="scope" :key="slot" />
+      <slot :name="slot" v-bind="asAny(scope)" :key="slot" />
     </template>
     <!-- <slot name="default" /> -->
   </a-button>
@@ -34,7 +34,10 @@ export default {
     };
     // newAttrs.onClick = insideClick;
 
-    return { newAttrs, inInterval, insideClick };
+    function asAny(input: any): any {
+      return input as any;
+    }
+    return { newAttrs, inInterval, insideClick, asAny };
   },
 };
 </script>

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 130 - 130
yarn.lock


이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.