Browse Source

fix type check

Michael Wang 3 years ago
parent
commit
2860a6dfbe
1 changed files with 1 additions and 1 deletions
  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>