ソースを参照

fix(compiler-core): change v-for key type to match Object.keys (#10963)

close #8819
Alexandre Ferrera 2 年 前
コミット
9fead52343
1 ファイル変更1 行追加1 行削除
  1. 1 1
      packages/runtime-core/src/helpers/renderList.ts

+ 1 - 1
packages/runtime-core/src/helpers/renderList.ts

@@ -42,7 +42,7 @@ export function renderList<T>(
   source: T,
   renderItem: <K extends keyof T>(
     value: T[K],
-    key: K,
+    key: string,
     index: number,
   ) => VNodeChild,
 ): VNodeChild[]