Skip to content
This repository has been archived by the owner on Apr 28, 2020. It is now read-only.

Fix cellIndex data bug #6

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions template.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
<!-- Header -->
<div class="tablex-row tablex-header" v-if="options.header">
<div class="row-ctrl"><i class="fa fa-header"></i></div>
<input class="row-cell input" type="text" :name="'<?= $field->name() ?>[header]'" v-model="header[cellIndex]" v-for="(cell, cellIndex) in columnCount">
<input class="row-cell input" type="text" :name="'<?= $field->name() ?>[header]['+ cellIndex +']'" v-model="header[cellIndex]" v-for="(cell, cellIndex) in columnCount">
<div class="row-ctrl filling-block"></div>
</div>

Expand All @@ -52,7 +52,7 @@
<i class="fa fa-chevron-up" v-bind:class="{ disabled: rowIndex == 0 }" v-on:click="moveRow(rowIndex, 'up')"></i>
<i class="fa fa-chevron-down" v-bind:class="{ disabled: rowIndex == rowCount-1 }" v-on:click="moveRow(rowIndex, 'down')"></i>
</div>
<input class="row-cell input" type="text" :name="'<?= $field->name() ?>[table]['+ rowIndex +']'" v-model="row[cellIndex]" v-for="(cell, cellIndex) in row">
<textarea class="row-cell input" :name="'<?= $field->name() ?>[table]['+ rowIndex +']['+ cellIndex +']'" v-model="row[cellIndex]" v-for="(cell, cellIndex) in row" style="min-height: 200px"></textarea>
<div class="row-ctrl delete-row">
<i class="fa fa-times-circle" v-on:click="deleteRow(rowIndex)" v-show="rowCount > 1"></i>
</div>
Expand Down