优化页面

This commit is contained in:
pengxiaolong
2025-06-10 23:06:51 +08:00
parent 8c70c2c850
commit 3c2d7e5959
974 changed files with 353 additions and 87597 deletions

View File

@@ -1,29 +0,0 @@
"use strict";
const common_vendor = require("../../../../common/vendor.js");
const TUIKit_components_common_Toast_type = require("./type.js");
const Toast = (options) => {
common_vendor.i.showToast({
title: options.message || "Toast",
duration: options.duration || 1500,
icon: handleIconType(options.type)
});
};
const handleIconType = (type) => {
if (!type) {
return "none";
}
switch (type) {
case TUIKit_components_common_Toast_type.TOAST_TYPE.ERROR:
return "none";
case TUIKit_components_common_Toast_type.TOAST_TYPE.WARNING:
return "none";
case TUIKit_components_common_Toast_type.TOAST_TYPE.SUCCESS:
return "success";
case TUIKit_components_common_Toast_type.TOAST_TYPE.NORMAL:
return "none";
default:
return "none";
}
};
exports.Toast = Toast;
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/TUIKit/components/common/Toast/index.js.map

View File

@@ -1,9 +0,0 @@
"use strict";
const TOAST_TYPE = {
SUCCESS: "success",
WARNING: "warning",
ERROR: "error",
NORMAL: "normal"
};
exports.TOAST_TYPE = TOAST_TYPE;
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/TUIKit/components/common/Toast/type.js.map