Skip to content

Commit df79539

Browse files
authored
Update mixin-tbody-row.js
1 parent 6382ec6 commit df79539

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/components/table/helpers/mixin-tbody-row.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,9 @@ export default {
207207
this.$emit('row-contextmenu', item, index, e)
208208
},
209209
// Render helpers
210-
renderTbodyRowCell(h, field, colIndex, item, rowIndex) {
210+
renderTbodyRowCell(field, colIndex, item, rowIndex) {
211+
const h = this.$createElement
212+
211213
// Renders a TD or TH for a row's field
212214
const $scoped = this.$scopedSlots
213215
const detailsSlot = $scoped['row-details']
@@ -258,8 +260,9 @@ export default {
258260
// Render either a td or th cell
259261
return h(field.isRowHeader ? 'th' : 'td', data, $childNodes)
260262
},
261-
renderTbodyRow(h, item, rowIndex) {
263+
renderTbodyRow(item, rowIndex) {
262264
// Renders an item's row (or rows if details supported)
265+
const h = this.$createElement
263266
const $scoped = this.$scopedSlots
264267
const fields = this.computedFields
265268
const tableStriped = this.striped
@@ -280,7 +283,7 @@ export default {
280283

281284
// For each item data field in row
282285
const $tds = fields.map((field, colIndex) => {
283-
return this.renderTbodyRowCell(h, field, colIndex, item, rowIndex)
286+
return this.renderTbodyRowCell(field, colIndex, item, rowIndex)
284287
})
285288

286289
// Calculate the row number in the dataset (indexed from 1)

0 commit comments

Comments
 (0)