UNPKG

872 BTypeScriptView Raw
1import { ElementUIComponent } from './component'
2import { VNode } from 'vue'
3
4interface ElSkeletonSlots {
5 /* default slot: Real rendering DOM */
6 default: VNode[]
7
8 /* template slot: Custom rendering skeleton template */
9 template: VNode[]
10
11 [key: string]: VNode[]
12}
13
14/** When loading data, and you need a rich experience for visual and interactions for your end users */
15export declare class ElSkeleton extends ElementUIComponent {
16 /** whether showing the animation; default: false */
17 animated: boolean
18
19 /** how many fake items to render to the DOM; default: 1 */
20 count: number
21
22 /** whether showing the skeleton; default true */
23 loading: boolean
24
25 /** numbers of the row, only useful when no template slot were given; default: 4 */
26 rows: boolean
27
28 /** Rendering delay in millseconds; default: 0 */
29 throttle: number
30
31 $slots: ElSkeletonSlots
32
33}