@@ -207,7 +207,9 @@ export default {
207
207
this . $emit ( 'row-contextmenu' , item , index , e )
208
208
} ,
209
209
// Render helpers
210
- renderTbodyRowCell ( h , field , colIndex , item , rowIndex ) {
210
+ renderTbodyRowCell ( field , colIndex , item , rowIndex ) {
211
+ const h = this . $createElement
212
+
211
213
// Renders a TD or TH for a row's field
212
214
const $scoped = this . $scopedSlots
213
215
const detailsSlot = $scoped [ 'row-details' ]
@@ -258,8 +260,9 @@ export default {
258
260
// Render either a td or th cell
259
261
return h ( field . isRowHeader ? 'th' : 'td' , data , $childNodes )
260
262
} ,
261
- renderTbodyRow ( h , item , rowIndex ) {
263
+ renderTbodyRow ( item , rowIndex ) {
262
264
// Renders an item's row (or rows if details supported)
265
+ const h = this . $createElement
263
266
const $scoped = this . $scopedSlots
264
267
const fields = this . computedFields
265
268
const tableStriped = this . striped
@@ -280,7 +283,7 @@ export default {
280
283
281
284
// For each item data field in row
282
285
const $tds = fields . map ( ( field , colIndex ) => {
283
- return this . renderTbodyRowCell ( h , field , colIndex , item , rowIndex )
286
+ return this . renderTbodyRowCell ( field , colIndex , item , rowIndex )
284
287
} )
285
288
286
289
// Calculate the row number in the dataset (indexed from 1)
0 commit comments