From 13b1e12a676030418481726bf7669f5d14a22893 Mon Sep 17 00:00:00 2001 From: Luk Lu Date: Sun, 5 Jun 2022 22:06:30 +0800 Subject: [PATCH] u --- package.json | 2 +- usertool.js => unitool.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) rename usertool.js => unitool.js (99%) 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 }