浏览代码

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>