Skip to content

Commit ace8841

Browse files
authored
Update table.js
1 parent ef73ee3 commit ace8841

File tree

1 file changed

+2
-47
lines changed

1 file changed

+2
-47
lines changed

src/components/table/table.js

Lines changed: 2 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -702,53 +702,8 @@ export default {
702702
// Build the tfoot
703703
const $tfoot = this.renderTfoot()
704704

705-
// Prepare the tbody rows
706-
const $rows = []
707-
708-
// Add static Top Row slot (hidden in visibly stacked mode as we can't control the data-label)
709-
$rows.push(this.renderTopRow())
710-
711-
// Add the item data rows or the busy slot
712-
const $busy = this.renderBusy()
713-
if ($busy) {
714-
$rows.push($busy)
715-
} else {
716-
// Show the rows
717-
items.forEach((item, rowIndex) => {
718-
// Render the individual item row (rows if details slot)
719-
$rows.push(this.renderTbodyRow(item, rowIndex))
720-
})
721-
}
722-
723-
// Empty Items / Empty Filtered Row slot
724-
$rows.push(this.renderEmpty())
725-
726-
// Static bottom row slot (hidden in visibly stacked mode as we can't control the data-label)
727-
$rows.push(this.renderBottomRow())
728-
729-
// Is tbody transition enabled
730-
const isTransGroup = this.tbodyTransitionProps || this.tbodyTransitionHandlers
731-
let tbodyProps = {}
732-
let tbodyOn = {}
733-
if (isTransGroup) {
734-
tbodyOn = this.tbodyTransitionHandlers || {}
735-
tbodyProps = {
736-
...(this.tbodyTransitionProps || {}),
737-
tag: 'tbody'
738-
}
739-
}
740-
741-
// Assemble the rows into the tbody
742-
const $tbody = h(
743-
isTransGroup ? 'transition-group' : 'tbody',
744-
{
745-
props: tbodyProps,
746-
on: tbodyOn,
747-
class: this.bodyClasses,
748-
attrs: this.isStacked ? { role: 'rowgroup' } : {}
749-
},
750-
$rows
751-
)
705+
// Build the tbody
706+
const $tbody = this.renderTbody()
752707

753708
// Assemble table
754709
const $table = h(

0 commit comments

Comments
 (0)