diff --git a/package.json b/package.json index ecb4218..9bff87f 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "usend-toolkit-uniapp", "version": "1.0.0", "description": "uniapp people side tools", - "main": "usertool.js", + "main": "unitool.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, diff --git a/usertool.js b/unitool.js similarity index 99% rename from usertool.js rename to unitool.js index f2925c6..f95db9c 100644 --- a/usertool.js +++ b/unitool.js @@ -451,9 +451,9 @@ export default { toast.show({ type, title, duration, ...rest }) return } else if (popup) { - wo.ss.toastType = type - wo.ss.toastMessage = title - wo.ss.toastDuration = duration + wo.ss.popMessage = title + wo.ss.popType = type || 'success' + wo.ss.popDuration = duration || 2000 popup.open() return }