Simplified table loading overlay

pull/411/head
cagataycivici 2020-07-18 14:11:41 +03:00
parent 291adada5f
commit 7faa9d649c
2 changed files with 4 additions and 6 deletions

View File

@ -1,11 +1,9 @@
<template>
<div :class="containerClass">
<slot></slot>
<div class="p-datatable-loading" v-if="loading">
<div class="p-datatable-loading-overlay p-component-overlay">
<div class="p-datatable-loading-overlay p-component-overlay" v-if="loading">
<i :class="loadingIconClass"></i>
</div>
</div>
<div class="p-datatable-header" v-if="$scopedSlots.header">
<slot name="header"></slot>
</div>

View File

@ -1,7 +1,7 @@
<template>
<div :class="containerClass">
<template v-if="loading">
<div class="p-tree-loading-mask p-component-overlay">
<div class="p-tree-loading-overlay p-component-overlay">
<i :class="loadingIconClass" />
</div>
</template>
@ -337,7 +337,7 @@ export default {
min-height: 4rem;
}
.p-tree .p-tree-loading-mask {
.p-tree .p-tree-loading-overlay {
position: absolute;
z-index: 1;
display: flex;