]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
fix(compiler-core): change v-for key type to match Object.keys (#10963)
authorAlexandre Ferrera <alexandre78ferrera@gmail.com>
Mon, 20 May 2024 11:33:18 +0000 (13:33 +0200)
committerGitHub <noreply@github.com>
Mon, 20 May 2024 11:33:18 +0000 (19:33 +0800)
close #8819

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

index 655435fdd7a539cef64bf1410241de6c0065db60..e4302fcc3b12d0f948cd429d4ce4bcd445f7e3a8 100644 (file)
@@ -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[]