component-shipinlv 2.2.19 → 2.2.21

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.
@@ -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: "success" | "info" | "warning" | "error", message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
165
+ notification(type: "info" | "error" | "success" | "warning", 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;
@@ -1,2 +1,2 @@
1
- declare const getImageUrl: (url: string) => string;
1
+ declare const getImageUrl: (url: string, disabledCache?: boolean) => string;
2
2
  export default getImageUrl;
@@ -1,8 +1,9 @@
1
1
  import { getMainPort } from "../getApiUrl";
2
2
  var getImageUrl = function getImageUrl(url) {
3
+ var disabledCache = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
3
4
  // windows
4
5
  // let url = urlQuery.replace(/\\/g, '\\\\');
5
6
 
6
- return /^(\/)|^([a-z]:)/i.test(url) ? "http://127.0.0.1:".concat(getMainPort(), "/image/preview?filePath=").concat(encodeURIComponent(url)) : url;
7
+ return /^(\/)|^([a-z]:)/i.test(url) ? "http://127.0.0.1:".concat(getMainPort(), "/image/preview?filePath=").concat(encodeURIComponent(url), "&disabledCache=").concat(disabledCache ? Date.now() : 0) : url;
7
8
  };
8
9
  export default getImageUrl;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "component-shipinlv",
3
- "version": "2.2.19",
3
+ "version": "2.2.21",
4
4
  "description": "",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",