Skip to content

Commit

Permalink
Merge pull request #2651 from moliyu/fix-loading
Browse files Browse the repository at this point in the history
fix: loading slot can be rendered without vxeui installed
  • Loading branch information
xuliangzhan authored Nov 22, 2024
2 parents 6246d73 + 0c04ee7 commit cd7f7aa
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion packages/table/src/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7763,7 +7763,15 @@ export default defineComponent({
default: () => loadingSlot({ $table: $xeTable, $grid: $xeGrid })
}
: {})
: renderEmptyElement($xeTable),
: currLoading && loadingSlot
? h('div', {
class: ['vxe-loading', {
'is--visible': currLoading
}]
}, h('div', { class: 'vxe-loading--wrapper' }, {
default: () => loadingSlot({ $table: $xeTable, $grid: $xeGrid })
}))
: renderEmptyElement($xeTable),
/**
* 自定义列
*/
Expand Down

0 comments on commit cd7f7aa

Please sign in to comment.