mirror of
https://github.com/youzan/vant.git
synced 2025-10-21 19:24:16 +00:00
[bugfix] Toast: incorrect overlay duration (#3671)
This commit is contained in:
@@ -51,7 +51,12 @@ function createInstance() {
|
||||
|
||||
// transform toast options to popup props
|
||||
function transformOptions(options) {
|
||||
options = { ...options };
|
||||
options.overlay = options.mask;
|
||||
|
||||
delete options.mask;
|
||||
delete options.duration;
|
||||
|
||||
return options;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user