File tree 2 files changed +13
-0
lines changed
2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 26
26
},
27
27
"dependencies" : {
28
28
"babel-runtime" : " ^6.0.0" ,
29
+ "tb-skeleton" : " ^0.3.5" ,
29
30
"vue" : " ^1.0.21" ,
30
31
"fuse.js" : " ^2.6.2"
31
32
},
Original file line number Diff line number Diff line change 66
66
</td >
67
67
<slot name =" tbody-tr" :row =" row" ></slot >
68
68
</tr >
69
+ <tr v-for =" n in currentPerPage" v-if =" rows.length===0&&loadingAnimation===true" >
70
+ <td :colspan =" columns.length" >
71
+ <tb-skeleton :height =" 15" theme =" opacity" bg-color =" #dcdbdc" shape =" radius" ></tb-skeleton >
72
+ </td >
73
+ </tr >
69
74
</tbody >
70
75
</table >
71
76
112
117
<script >
113
118
import Fuse from ' fuse.js' ;
114
119
import locales from ' ./locales' ;
120
+ import ' tb-skeleton/dist/skeleton.css'
121
+ import {TbSkeleton ,Skeleton } from ' tb-skeleton'
115
122
116
123
export default {
124
+ components: {
125
+ TbSkeleton,
126
+ Skeleton
127
+ },
117
128
props: {
118
129
title: ' ' ,
119
130
columns: {},
140
151
printable: {default: true },
141
152
locale: {default: ' en' },
142
153
initSortCol: {default: - 1 }
154
+ loadingAnimation: {default: true },
143
155
},
144
156
145
157
data : () => ({
You can’t perform that action at this time.
0 commit comments