File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ const timer = setInterval(() => {
94
94
| forbidClick | 是否禁止背景点击 | * boolean* | ` false ` | - |
95
95
| loadingType | 加载图标类型, 可选值为 ` spinner ` | * string* | ` circular ` | - |
96
96
| zIndex | z-index 层级 | * number* | ` 1000 ` | - |
97
- | duration | 展示时长(ms),值为 0 时,toast 不会消失 | * number* | ` 3000 ` | - |
97
+ | duration | 展示时长(ms),值为 0 时,toast 不会消失 | * number* | ` 2000 ` | - |
98
98
| selector | 自定义选择器 | * string* | ` van-toast ` | - |
99
99
| context | 选择器的选择范围,可以传入自定义组件的 this 作为上下文 | * object* | 当前页面 | - |
100
100
| onClose | 关闭时的回调函数 | * Function* | - | - |
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ const defaultOptions = {
23
23
message : '' ,
24
24
show : true ,
25
25
zIndex : 1000 ,
26
- duration : 3000 ,
26
+ duration : 2000 ,
27
27
position : 'middle' ,
28
28
forbidClick : false ,
29
29
loadingType : 'circular' ,
You can’t perform that action at this time.
0 commit comments