回答編集履歴

1

Code修正

2017/02/13 05:24

投稿

Neko_doshi
Neko_doshi

スコア214

test CHANGED
@@ -18,9 +18,9 @@
18
18
 
19
19
  <tbody>
20
20
 
21
- <tr v-for='(file,index) in files'>
21
+ <tr v-for='(index) in files'>
22
22
 
23
- <td v-bind:class='{none : flag[index]}'> {{ files[index] }}</td>
23
+ <td v-bind:class='{none : flag[index]}'> {{ files[index-1] }}</td>
24
24
 
25
25
  </tr>
26
26
 
@@ -44,7 +44,7 @@
44
44
 
45
45
  'files': [1,2,3,4,5,6,7,8,9], // テーブルへ表示するデータ
46
46
 
47
- 'flag': [true,true,true,false,true,true,false,true,true,true] // ファイル名表示フラグ
47
+ 'flag': [true,false,true,false,true,false,true,false,true] // ファイル名表示フラグ
48
48
 
49
49
  }
50
50