pixuireactcomponents 1.5.38 → 1.5.39

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/index.d.ts CHANGED
@@ -19,4 +19,5 @@ export { LoadChecker } from "./src/components/tools/LoadChecker";
19
19
  export { AntiRepeat } from "./src/components/tools/antiRepeat";
20
20
  export { DragList } from "./src/components/react/app/dragList/dragList";
21
21
  export { QRCode } from "./src/components/react/app/qrcode/QRCode";
22
+ export { VirtualList } from "./src/components/react/app/virtualList/VirtualList";
22
23
  export { Slider, SliderProps } from "./src/components/react/app/slider/Slider";
package/index.js CHANGED
@@ -25,3 +25,4 @@ export { LoadChecker } from './src/components/tools/LoadChecker';
25
25
  export { AntiRepeat } from './src/components/tools/antiRepeat';
26
26
  export { DragList } from './src/components/react/app/dragList/dragList';
27
27
  export { QRCode } from './src/components/react/app/qrcode/QRCode';
28
+ export { VirtualList } from './src/components/react/app/virtualList/VirtualList';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pixuireactcomponents",
3
- "version": "1.5.38",
3
+ "version": "1.5.39",
4
4
  "description": "pixui react components",
5
5
  "main": "index.js",
6
6
  "sideEffects": false,
@@ -34,7 +34,6 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
34
34
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
35
35
  }
36
36
  };
37
- import path from 'path';
38
37
  import { sha1 } from './Sha1';
39
38
  import { LibMgr } from '../../../lib/loadlib/lib_mgr';
40
39
  var assetPrefix = 'cacheAsset';
@@ -210,12 +209,14 @@ export var assetCache;
210
209
  console.warn('getLocalPath failed', url);
211
210
  return '';
212
211
  }
213
- var filePath = path.join(cachePath, 'assetcache');
212
+ var filePath = "".concat(cachePath, "/assetcache");
214
213
  //检查assetcache文件夹
215
214
  if (!OPLib.dirExists(filePath)) {
216
215
  OPLib.makeDir(filePath);
217
216
  }
218
- var fileName = sha1(assetPrefix + url).substring(0, 20) + path.extname(url);
219
- return path.join(filePath, fileName || '');
217
+ var cleanUrl = url.split('?')[0].split('#')[0];
218
+ var ext = cleanUrl.includes('.') ? cleanUrl.slice(cleanUrl.lastIndexOf('.')) : '';
219
+ var fileName = sha1(assetPrefix + url).substring(0, 20) + ext;
220
+ return "".concat(filePath, "/").concat(fileName);
220
221
  };
221
222
  })(assetCache || (assetCache = {}));