From 3ac01a98cc14d2f2cbcb148d0c516f47d56e1baf Mon Sep 17 00:00:00 2001 From: Kael Date: Wed, 23 May 2018 03:09:10 +1000 Subject: [PATCH 1/3] fix(types): add refInFor to VNodeData --- types/vnode.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/types/vnode.d.ts b/types/vnode.d.ts index 5754c433dcd..ca68f13417f 100644 --- a/types/vnode.d.ts +++ b/types/vnode.d.ts @@ -36,6 +36,7 @@ export interface VNodeData { slot?: string; scopedSlots?: { [key: string]: ScopedSlot }; ref?: string; + refInFor?: string; tag?: string; staticClass?: string; class?: any; From 0a445f800b94681ad0c15769a890131db63a2012 Mon Sep 17 00:00:00 2001 From: Kael Date: Wed, 23 May 2018 03:13:18 +1000 Subject: [PATCH 2/3] boolean not string -_- --- types/vnode.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/vnode.d.ts b/types/vnode.d.ts index ca68f13417f..f37a2e57cac 100644 --- a/types/vnode.d.ts +++ b/types/vnode.d.ts @@ -36,7 +36,7 @@ export interface VNodeData { slot?: string; scopedSlots?: { [key: string]: ScopedSlot }; ref?: string; - refInFor?: string; + refInFor?: boolean; tag?: string; staticClass?: string; class?: any; From 6013b88713a152d21436fc79a665635b2b8cadda Mon Sep 17 00:00:00 2001 From: Kael Date: Wed, 23 May 2018 03:17:03 +1000 Subject: [PATCH 3/3] Update options-test.ts --- types/test/options-test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/types/test/options-test.ts b/types/test/options-test.ts index 6fc9e356451..8324d088c92 100644 --- a/types/test/options-test.ts +++ b/types/test/options-test.ts @@ -160,7 +160,8 @@ Vue.component('component', { fontSize: '14px' }, key: 'myKey', - ref: 'myRef' + ref: 'myRef', + refInFor: true }, [ createElement(), createElement("div", "message"),