File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
samples/node/web/vue/mini-excel/static Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 131
131
} ,
132
132
change : function ( e ) {
133
133
var
134
- rowIndex = vm . selectedRowIndex ,
135
- colIndex = vm . selectedColIndex ,
136
- text , that ;
134
+ rowIndex = this . selectedRowIndex ,
135
+ colIndex = this . selectedColIndex ,
136
+ text ;
137
137
if ( rowIndex > 0 && colIndex > 0 ) {
138
138
text = e . target . innerText ;
139
139
this . rows [ rowIndex - 1 ] [ colIndex ] . text = text ;
219
219
< table id ="sheet " class ="table table-bordered ">
220
220
< thead >
221
221
< 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 >
223
223
</ tr >
224
224
</ thead >
225
225
< tbody >
226
226
< 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 >
228
228
</ tr >
229
229
</ tbody >
230
230
</ table >
245
245
</ footer >
246
246
</ body >
247
247
248
- </ html >
248
+ </ html >
You can’t perform that action at this time.
0 commit comments