props.js
1.86 KB
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
export default {
props: {
// z-index值
zIndex: {
type: [String, Number],
default: uni.$u.props.toast.zIndex
},
// 是否加载中
loading: {
type: Boolean,
default: uni.$u.props.toast.loading
},
// 显示的文字内容
text: {
type: [String, Number],
default: uni.$u.props.toast.text
},
// 图标,或者绝对路径的图片
icon: {
type: String,
default: uni.$u.props.toast.icon
},
// 主题类型
type: {
type: String,
default: uni.$u.props.toast.type
},
// 是否显示透明遮罩,防止点击穿透
overlay: {
type: Boolean,
default: uni.$u.props.toast.overlay
},
// 位置
position: {
type: String,
default: uni.$u.props.toast.position
},
// 跳转的参数
params: {
type: Object,
default: uni.$u.props.toast.params
},
// 展示时间,单位ms
duration: {
type: [String, Number],
default: uni.$u.props.toast.duration
},
// 是否返回的为tab页面
isTab: {
type: Boolean,
default: uni.$u.props.toast.isTab
},
// toast消失后是否跳转页面,有则跳转,优先级高于back参数
url: {
type: String,
default: uni.$u.props.toast.url
},
// 执行完后的回调函数
callback: {
type: [Function, null],
default: uni.$u.props.toast.callback
},
// 结束toast是否自动返回上一页
back: {
type: Boolean,
default: uni.$u.props.toast.back
}
}
}