-
zhangwei
2024-08-29 447e19fa298ae11a1c3a3fa2d2ff3a1a8dba0501
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
import { AllowedComponentProps, VNodeProps } from './_common'
 
 
declare interface SkeletonProps {
  /**
   * 是否显示骨架占位图,设置为`false`将会展示子组件内容
   * @default true
   */
  loading?: boolean
  /**
   * 是否开启动画效果
   * @default true
   */
  animate?: boolean
  /**
   * 段落占位图行数
   * @default 0
   */
  rows?: string | number
  /**
   * 段落占位图的宽度,可以为百分比,数值,带单位字符串等,可通过数组传入指定每个段落行的宽度
   * @default "100%"
   */
  rowsWidth?: string | number | any[]
  /**
   * 段落的高度
   * @default 18
   */
  rowsHeight?: string | number | any[]
  /**
   * 是否展示标题占位图
   * @default true
   */
  title?: boolean
  /**
   * 标题的宽度
   * @default "50%"
   */
  titleWidth?: string | number
  /**
   * 标题的高度
   * @default 18
   */
  titleHeight?: string | number
  /**
   * 是否展示头像占位图
   * @default false
   */
  avatar?: boolean
  /**
   * 头像占位图大小
   * @default 32
   */
  avatarSize?: string | number
  /**
   * 头像占位图的形状
   * @default "circle"
   */
  avatarShape?: 'circle' | 'square'
}
 
declare interface _Skeleton {
  new (): {
    $props: AllowedComponentProps &
      VNodeProps &
      SkeletonProps
  }
}
 
export declare const Skeleton: _Skeleton