ソースを参照

types: add refInFor to VNodeData (#8229)

Kael 7 年 前
コミット
bfd722bb5d
2 ファイル変更3 行追加1 行削除
  1. 2 1
      types/test/options-test.ts
  2. 1 0
      types/vnode.d.ts

+ 2 - 1
types/test/options-test.ts

@@ -176,7 +176,8 @@ Vue.component('component', {
         fontSize: '14px'
       },
       key: 'myKey',
-      ref: 'myRef'
+      ref: 'myRef',
+      refInFor: true
     }, [
       createElement(),
       createElement("div", "message"),

+ 1 - 0
types/vnode.d.ts

@@ -36,6 +36,7 @@ export interface VNodeData {
   slot?: string;
   scopedSlots?: { [key: string]: ScopedSlot };
   ref?: string;
+  refInFor?: boolean;
   tag?: string;
   staticClass?: string;
   class?: any;