Skip to content

Commit

Permalink
Fix: Warning cause of missing prop matrix.vue #2513
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewtelnov committed Nov 8, 2020
1 parent 335ebf6 commit 29bba0a
Showing 1 changed file with 22 additions and 7 deletions.
29 changes: 22 additions & 7 deletions src/vue/matrix.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,21 @@
<thead v-if="question.showHeader">
<tr>
<td v-show="question.hasRows"></td>
<th v-for="column in question.visibleColumns" :key="columnIndex" :class="question.cssClasses.headerCell">
<th
v-for="(column, columnIndex) in question.visibleColumns"
:key="columnIndex"
:class="question.cssClasses.headerCell"
>
<survey-string :locString="column.locText" />
</th>
</tr>
</thead>
<tbody>
<tr v-for="(row, rowIndex) in question.visibleRows" :key="rowIndex" :class="row.rowClasses">
<tr
v-for="(row, rowIndex) in question.visibleRows"
:key="rowIndex"
:class="row.rowClasses"
>
<td :class="question.cssClasses.cell" v-show="question.hasRows">
<survey-string :locString="row.locText" />
</td>
Expand All @@ -21,17 +29,19 @@
v-for="(column, columnIndex) in question.visibleColumns"
:key="columnIndex"
:class="question.getItemClass(row, column)"
v-on:click="function() { cellClick(row, column); }"
v-on:click="cellClick(row, column)"
>
<span>{{question.getCellDisplayLocText(row.name, column).renderedHtml}}</span>
<span>{{
question.getCellDisplayLocText(row.name, column).renderedHtml
}}</span>
</td>
<td
v-if="!question.hasCellText"
v-for="(column, columnIndex) in question.visibleColumns"
:key="columnIndex"
:headers="column.locText.renderedHtml"
:class="question.cssClasses.cell"
v-on:click="function() { cellClick(row, column); }"
v-on:click="cellClick(row, column)"
>
<label :class="question.getItemClass(row, column)">
<input
Expand All @@ -46,13 +56,18 @@
:aria-label="question.locTitle.renderedHtml"
/>
<span :class="question.cssClasses.materialDecorator">
<svg :class="question.cssClasses.itemDecorator" viewBox="-12 -12 24 24">
<svg
:class="question.cssClasses.itemDecorator"
viewBox="-12 -12 24 24"
>
<circle r="6" cx="0" cy="0" />
</svg>
</span>
<span class="circle"></span>
<span class="check"></span>
<span :style="{ 'display': 'none' }">{{question.locTitle.renderedHtml}}</span>
<span :style="{ display: 'none' }">{{
question.locTitle.renderedHtml
}}</span>
</label>
</td>
</tr>
Expand Down

0 comments on commit 29bba0a

Please sign in to comment.