zhangwei
2025-01-16 ea44321752674bc97efb7bfa987c19121c3d6881
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
71
72
import { AllowedComponentProps, VNodeProps } from './_common'
 
declare interface EmptyProps {
  /**
   * 内置图标名称,或图片路径,建议绝对路径
   */
  icon?: string
  /**
   * 文字提示
   */
  text?: string
  /**
   * 文字颜色
   * @default "#c0c4cc"
   */
  textColor?: string
  /**
   * 文字大小
   * @default 14
   */
  textSize?: string | number
  /**
   * 图标的颜色
   * @default "#c0c4cc"
   */
  iconColor?: string
  /**
   * 图标的大小
   * @default 90
   */
  iconSize?: string | number
  /**
   * 内置的图标,详细见[文档](https://www.uviewui.com/components/empty.html#%E5%86%85%E7%BD%AE%E5%9B%BE%E6%A0%87)
   * @default "data"
   */
  mode?: string
  /**
   * 图标的宽度,单位px
   * @default 160
   */
  width?: string | number
  /**
   * 图标的高度,单位px
   * @default 160
   */
  height?: string | number
  /**
   * 是否显示组件
   * @default true
   */
  show?: boolean
  /**
   * 组件到上一个元素的间距,单位px
   * @default 0
   */
  marginTop?: string | number
}
 
declare interface EmptySlots {
  ['default']?: () => any
}
 
declare interface _Empty {
  new (): {
    $props: AllowedComponentProps &
      VNodeProps &
      EmptyProps
    $slots: EmptySlots
  }
}
 
export declare const Empty: _Empty