소스 검색

fix type check

Michael Wang 3 년 전
부모
커밋
2860a6dfbe
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/components/QmButton.vue

+ 1 - 1
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="asAny(scope)" :key="slot" />
+      <slot :name="asAny(slot)" v-bind="asAny(scope)" :key="slot" />
     </template>
     <!-- <slot name="default" /> -->
   </a-button>