component-shipinlv 2.0.13 → 2.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/Tool.d.ts +1 -1
- package/dist/lib/Tool.js +2 -2
- package/package.json +1 -1
package/dist/lib/Tool.d.ts
CHANGED
@@ -162,7 +162,7 @@ declare const Tool: {
|
|
162
162
|
getTitleByPath(path: string): string;
|
163
163
|
getDirByPath(path: string): string;
|
164
164
|
h5Pay(query: Pay.H5PayQuery): void;
|
165
|
-
notification(type: "
|
165
|
+
notification(type: "success" | "info" | "warning" | "error", message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
|
166
166
|
notificationSuccess(message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
|
167
167
|
notificationError(message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
|
168
168
|
notificationWarning(message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
|
package/dist/lib/Tool.js
CHANGED
@@ -1100,7 +1100,6 @@ var Tool = _objectSpread(_objectSpread({
|
|
1100
1100
|
return Date.now() - Tool.getTimeOffset();
|
1101
1101
|
},
|
1102
1102
|
getOsName: function getOsName() {
|
1103
|
-
return 'windows';
|
1104
1103
|
var userAgent = navigator.userAgent || window.opera;
|
1105
1104
|
|
1106
1105
|
// Windows
|
@@ -1108,7 +1107,8 @@ var Tool = _objectSpread(_objectSpread({
|
|
1108
1107
|
return "windows";
|
1109
1108
|
}
|
1110
1109
|
// macOS
|
1111
|
-
|
1110
|
+
// Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
|
1111
|
+
if (/Mac\s/i.test(userAgent)) {
|
1112
1112
|
return "darwin";
|
1113
1113
|
}
|
1114
1114
|
|