[bugfix] Toast: incorrect overlay duration (#3671)

This commit is contained in:
neverland
2019-06-27 22:39:38 +08:00
committed by GitHub
parent 68ffe0bddc
commit 0a767bed7f
2 changed files with 9 additions and 3 deletions

View File

@@ -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;
}