mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-11 01:42:34 +00:00
Fixed #4886 - Tree / TreeTable: new loadingMode property
This commit is contained in:
parent
098c7a5128
commit
b2ad40adcc
10 changed files with 61 additions and 14 deletions
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<div :class="cx('root')" data-scrollselectors=".p-treetable-scrollable-body" role="table" v-bind="ptm('root')" data-pc-name="treetable">
|
||||
<div v-if="loading" :class="cx('loadingWrapper')" v-bind="ptm('loadingWrapper')">
|
||||
<div v-if="loading && loadingMode === 'mask'" :class="cx('loadingWrapper')" v-bind="ptm('loadingWrapper')">
|
||||
<div :class="cx('loadingOverlay')" v-bind="ptm('loadingOverlay')">
|
||||
<slot name="loadingicon" :class="cx('loadingIcon')">
|
||||
<component :is="loadingIcon ? 'span' : 'SpinnerIcon'" spin :class="[cx('loadingIcon'), loadingIcon]" v-bind="ptm('loadingIcon')" />
|
||||
|
@ -94,6 +94,7 @@
|
|||
:ariaSetSize="dataToRender.length"
|
||||
:ariaPosInset="index + 1"
|
||||
:tabindex="setTabindex(node, index)"
|
||||
:loadingMode="loadingMode"
|
||||
:templates="$slots"
|
||||
@node-toggle="onNodeToggle"
|
||||
@node-click="onNodeClick"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue