Skip to content

Commit 7502c46

Browse files
committed
minor fix
1 parent f94b1ed commit 7502c46

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

samples/node/web/vue/mini-excel/static/index.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,9 @@
131131
},
132132
change: function (e) {
133133
var
134-
rowIndex = vm.selectedRowIndex,
135-
colIndex = vm.selectedColIndex,
136-
text, that;
134+
rowIndex = this.selectedRowIndex,
135+
colIndex = this.selectedColIndex,
136+
text;
137137
if (rowIndex > 0 && colIndex > 0) {
138138
text = e.target.innerText;
139139
this.rows[rowIndex - 1][colIndex].text = text;
@@ -219,12 +219,12 @@
219219
<table id="sheet" class="table table-bordered">
220220
<thead>
221221
<tr>
222-
<th v-for="cell in header" v-on:click="focus(cell)" >{{ cell.text }}</th>
222+
<th v-for="cell in header" v-on:click="focus(cell)" v-text="cell.text"></th>
223223
</tr>
224224
</thead>
225225
<tbody>
226226
<tr v-for="tr in rows">
227-
<td v-for="cell in tr" v-on:blur="change" v-on:click="focus(cell)" v-bind:contenteditable="cell.contentEditable" v-bind:style="{ textAlign: cell.align }" v-text="cell.text"></td>
227+
<td v-for="cell in tr" v-on:click="focus(cell)" v-on:blur="change" v-bind:contenteditable="cell.contentEditable" v-bind:style="{ textAlign: cell.align }" v-text="cell.text"></td>
228228
</tr>
229229
</tbody>
230230
</table>
@@ -245,4 +245,4 @@
245245
</footer>
246246
</body>
247247

248-
</html>
248+
</html>

0 commit comments

Comments
 (0)