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
  | export default { 
 |      props: { 
 |          // 内置图标名称,或图片路径,建议绝对路径 
 |          icon: { 
 |              type: String, 
 |              default: uni.$u.props.empty.icon 
 |          }, 
 |          // 提示文字 
 |          text: { 
 |              type: String, 
 |              default: uni.$u.props.empty.text 
 |          }, 
 |          // 文字颜色 
 |          textColor: { 
 |              type: String, 
 |              default: uni.$u.props.empty.textColor 
 |          }, 
 |          // 文字大小 
 |          textSize: { 
 |              type: [String, Number], 
 |              default: uni.$u.props.empty.textSize 
 |          }, 
 |          // 图标的颜色 
 |          iconColor: { 
 |              type: String, 
 |              default: uni.$u.props.empty.iconColor 
 |          }, 
 |          // 图标的大小 
 |          iconSize: { 
 |              type: [String, Number], 
 |              default: uni.$u.props.empty.iconSize 
 |          }, 
 |          // 选择预置的图标类型 
 |          mode: { 
 |              type: String, 
 |              default: uni.$u.props.empty.mode 
 |          }, 
 |          //  图标宽度,单位px 
 |          width: { 
 |              type: [String, Number], 
 |              default: uni.$u.props.empty.width 
 |          }, 
 |          // 图标高度,单位px 
 |          height: { 
 |              type: [String, Number], 
 |              default: uni.$u.props.empty.height 
 |          }, 
 |          // 是否显示组件 
 |          show: { 
 |              type: Boolean, 
 |              default: uni.$u.props.empty.show 
 |          }, 
 |          // 组件距离上一个元素之间的距离,默认px单位 
 |          marginTop: { 
 |              type: [String, Number], 
 |              default: uni.$u.props.empty.marginTop 
 |          } 
 |      } 
 |  } 
 |  
  |