@tarojs/taro-h5 3.5.0-beta.2 → 3.5.0-beta.5

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.
Files changed (155) hide show
  1. package/dist/index.cjs.js +95 -67
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.esm.js +82 -55
  4. package/dist/index.esm.js.map +1 -1
  5. package/dist/{api → src/api}/ad/index.js +0 -0
  6. package/dist/{api → src/api}/ai/facial.js +0 -0
  7. package/dist/{api → src/api}/ai/index.js +0 -0
  8. package/dist/{api → src/api}/ai/visual.js +0 -0
  9. package/dist/{api → src/api}/alipay/index.js +0 -0
  10. package/dist/{api → src/api}/base/crypto.js +0 -0
  11. package/dist/{api → src/api}/base/debug.js +0 -0
  12. package/dist/{api → src/api}/base/index.js +0 -0
  13. package/dist/{api → src/api}/base/performance.js +0 -0
  14. package/dist/{api → src/api}/base/system.js +0 -0
  15. package/dist/{api → src/api}/base/update.js +0 -0
  16. package/dist/src/api/base/weapp/app-event.js +69 -0
  17. package/dist/{api → src/api}/base/weapp/life-cycle.js +0 -0
  18. package/dist/{api → src/api}/canvas/CanvasContext.js +0 -0
  19. package/dist/{api → src/api}/canvas/canvasGetImageData.js +0 -0
  20. package/dist/{api → src/api}/canvas/canvasPutImageData.js +0 -0
  21. package/dist/{api → src/api}/canvas/canvasToTempFilePath.js +0 -0
  22. package/dist/{api → src/api}/canvas/createCanvasContext.js +0 -0
  23. package/dist/{api → src/api}/canvas/index.js +0 -0
  24. package/dist/{api → src/api}/cloud/index.js +0 -0
  25. package/dist/{api → src/api}/data-analysis/index.js +0 -0
  26. package/dist/{api → src/api}/device/accelerometer.js +0 -0
  27. package/dist/{api → src/api}/device/accessibility.js +0 -0
  28. package/dist/{api → src/api}/device/battery.js +0 -0
  29. package/dist/{api → src/api}/device/bluetooth-ble.js +0 -0
  30. package/dist/{api → src/api}/device/bluetooth-peripheral.js +0 -0
  31. package/dist/{api → src/api}/device/bluetooth.js +0 -0
  32. package/dist/{api → src/api}/device/calendar.js +0 -0
  33. package/dist/{api → src/api}/device/clipboard.js +0 -0
  34. package/dist/{api → src/api}/device/compass.js +0 -0
  35. package/dist/{api → src/api}/device/contact.js +0 -0
  36. package/dist/{api → src/api}/device/crypto.js +0 -0
  37. package/dist/{api → src/api}/device/gyroscope.js +0 -0
  38. package/dist/{api → src/api}/device/iBeacon.js +0 -0
  39. package/dist/{api → src/api}/device/index.js +0 -0
  40. package/dist/{api → src/api}/device/keyboard.js +0 -0
  41. package/dist/{api → src/api}/device/memory.js +0 -0
  42. package/dist/{api → src/api}/device/motion.js +0 -0
  43. package/dist/{api → src/api}/device/network.js +0 -0
  44. package/dist/{api → src/api}/device/nfc.js +0 -0
  45. package/dist/{api → src/api}/device/phone.js +0 -0
  46. package/dist/{api → src/api}/device/scan.js +0 -0
  47. package/dist/{api → src/api}/device/screen.js +0 -0
  48. package/dist/{api → src/api}/device/vibrate.js +5 -7
  49. package/dist/{api → src/api}/device/wifi.js +0 -0
  50. package/dist/{api → src/api}/ext/index.js +0 -0
  51. package/dist/{api → src/api}/files/index.js +0 -0
  52. package/dist/{api → src/api}/framework/index.js +0 -0
  53. package/dist/{api → src/api}/index.js +0 -0
  54. package/dist/{api → src/api}/location/chooseLocation.js +0 -0
  55. package/dist/{api → src/api}/location/getLocation.js +0 -0
  56. package/dist/{api → src/api}/location/index.js +1 -0
  57. package/dist/{api → src/api}/media/EditorContext.js +0 -0
  58. package/dist/{api → src/api}/media/audio/InnerAudioContext.js +1 -1
  59. package/dist/{api → src/api}/media/audio/index.js +0 -0
  60. package/dist/{api → src/api}/media/background-audio/BackgroundAudioManager.js +0 -0
  61. package/dist/{api → src/api}/media/background-audio/index.js +0 -0
  62. package/dist/{api → src/api}/media/camera.js +0 -0
  63. package/dist/{api → src/api}/media/image/chooseImage.js +0 -0
  64. package/dist/{api → src/api}/media/image/getImageInfo.js +0 -0
  65. package/dist/{api → src/api}/media/image/index.js +0 -0
  66. package/dist/{api → src/api}/media/image/previewImage.js +0 -0
  67. package/dist/{api → src/api}/media/index.js +0 -0
  68. package/dist/{api → src/api}/media/live.js +0 -0
  69. package/dist/{api → src/api}/media/map.js +0 -0
  70. package/dist/{api → src/api}/media/media-recorder.js +0 -0
  71. package/dist/{api → src/api}/media/recorder.js +0 -0
  72. package/dist/{api → src/api}/media/video/index.js +0 -0
  73. package/dist/{api → src/api}/media/video-decoder.js +0 -0
  74. package/dist/{api → src/api}/media/video-processing.js +0 -0
  75. package/dist/{api → src/api}/media/voip.js +0 -0
  76. package/dist/{api → src/api}/navigate/index.js +0 -0
  77. package/dist/{api → src/api}/network/download.js +0 -0
  78. package/dist/{api → src/api}/network/index.js +0 -0
  79. package/dist/{api → src/api}/network/mdns.js +0 -0
  80. package/dist/{api → src/api}/network/request/index.js +0 -0
  81. package/dist/{api → src/api}/network/tcp.js +0 -0
  82. package/dist/{api → src/api}/network/udp.js +0 -0
  83. package/dist/{api → src/api}/network/upload.js +0 -0
  84. package/dist/{api → src/api}/network/utils.js +0 -0
  85. package/dist/{api → src/api}/network/websocket/index.js +0 -0
  86. package/dist/{api → src/api}/network/websocket/socketTask.js +0 -0
  87. package/dist/{api → src/api}/open-api/account.js +0 -0
  88. package/dist/{api → src/api}/open-api/address.js +0 -0
  89. package/dist/{api → src/api}/open-api/authorize.js +0 -0
  90. package/dist/{api → src/api}/open-api/card.js +0 -0
  91. package/dist/{api → src/api}/open-api/channels-live.js +0 -0
  92. package/dist/{api → src/api}/open-api/customer-service.js +0 -0
  93. package/dist/{api → src/api}/open-api/facial.js +0 -0
  94. package/dist/{api → src/api}/open-api/favorites.js +0 -0
  95. package/dist/{api → src/api}/open-api/group.js +0 -0
  96. package/dist/{api → src/api}/open-api/index.js +0 -0
  97. package/dist/{api → src/api}/open-api/invoice.js +0 -0
  98. package/dist/{api → src/api}/open-api/license-plate.js +0 -0
  99. package/dist/{api → src/api}/open-api/login.js +0 -0
  100. package/dist/{api → src/api}/open-api/red-package.js +0 -0
  101. package/dist/{api → src/api}/open-api/settings.js +0 -0
  102. package/dist/{api → src/api}/open-api/soter.js +0 -0
  103. package/dist/{api → src/api}/open-api/subscribe-message.js +0 -0
  104. package/dist/{api → src/api}/open-api/user-info.js +0 -0
  105. package/dist/{api → src/api}/open-api/werun.js +0 -0
  106. package/dist/{api → src/api}/payment/index.js +0 -0
  107. package/dist/{api → src/api}/route/index.js +0 -0
  108. package/dist/{api → src/api}/share/index.js +0 -0
  109. package/dist/{api → src/api}/storage/background-fetch.js +0 -0
  110. package/dist/{api → src/api}/storage/index.js +0 -0
  111. package/dist/{api → src/api}/swan/index.js +0 -0
  112. package/dist/{api → src/api}/taro.js +0 -0
  113. package/dist/{api → src/api}/ui/animation/index.js +0 -0
  114. package/dist/{api → src/api}/ui/background.js +0 -0
  115. package/dist/{api → src/api}/ui/custom-component.js +0 -0
  116. package/dist/{api → src/api}/ui/fonts.js +0 -0
  117. package/dist/{api → src/api}/ui/index.js +0 -0
  118. package/dist/{api → src/api}/ui/interaction/actionSheet.js +0 -0
  119. package/dist/{api → src/api}/ui/interaction/index.js +0 -0
  120. package/dist/{api → src/api}/ui/interaction/modal.js +1 -0
  121. package/dist/{api → src/api}/ui/interaction/toast.js +0 -0
  122. package/dist/{api → src/api}/ui/menu.js +0 -0
  123. package/dist/{api → src/api}/ui/navigation-bar/index.js +0 -0
  124. package/dist/{api → src/api}/ui/pull-down-refresh.js +0 -0
  125. package/dist/{api → src/api}/ui/scroll/index.js +0 -0
  126. package/dist/{api → src/api}/ui/sticky.js +0 -0
  127. package/dist/{api → src/api}/ui/tab-bar.js +0 -0
  128. package/dist/{api → src/api}/ui/window.js +0 -0
  129. package/dist/{api → src/api}/worker/index.js +0 -0
  130. package/dist/{api → src/api}/wxml/index.js +0 -0
  131. package/dist/{api → src/api}/wxml/nodesRef.js +0 -0
  132. package/dist/{api → src/api}/wxml/selectorQuery.js +1 -1
  133. package/dist/{index.js → src/index.js} +0 -0
  134. package/dist/{utils → src/utils}/animation.js +0 -0
  135. package/dist/{utils → src/utils}/handler.js +0 -0
  136. package/dist/{utils → src/utils}/index.js +0 -0
  137. package/dist/{utils → src/utils}/lodash.js +0 -0
  138. package/dist/{utils → src/utils}/valid.js +0 -0
  139. package/dist/taroApis.js +1 -1
  140. package/dist/types/type.js +2 -0
  141. package/package.json +16 -16
  142. package/src/api/base/weapp/app-event.ts +64 -4
  143. package/src/api/device/vibrate.ts +6 -8
  144. package/src/api/location/index.ts +1 -0
  145. package/src/api/media/audio/InnerAudioContext.ts +1 -1
  146. package/src/api/network/websocket/socketTask.ts +1 -1
  147. package/src/api/ui/interaction/modal.ts +1 -0
  148. package/src/api/wxml/selectorQuery.ts +1 -1
  149. package/types/api.d.ts +4 -0
  150. package/types/define.d.ts +2 -0
  151. package/types/index.d.ts +3 -0
  152. package/types/overlay.d.ts +9 -0
  153. package/types/type.ts +32 -0
  154. package/LICENSE +0 -21
  155. package/dist/api/base/weapp/app-event.js +0 -18
package/dist/index.cjs.js CHANGED
@@ -269,13 +269,11 @@ PERFORMANCE OF THIS SOFTWARE.
269
269
  var extendStatics = function(d, b) {
270
270
  extendStatics = Object.setPrototypeOf ||
271
271
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
272
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
272
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
273
273
  return extendStatics(d, b);
274
274
  };
275
275
 
276
276
  function __extends(d, b) {
277
- if (typeof b !== "function" && b !== null)
278
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
279
277
  extendStatics(d, b);
280
278
  function __() { this.constructor = d; }
281
279
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -357,16 +355,13 @@ function __generator(thisArg, body) {
357
355
  }
358
356
  }
359
357
 
360
- var __createBinding = Object.create ? (function(o, m, k, k2) {
361
- if (k2 === undefined) k2 = k;
362
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
363
- }) : (function(o, m, k, k2) {
358
+ function __createBinding(o, m, k, k2) {
364
359
  if (k2 === undefined) k2 = k;
365
360
  o[k2] = m[k];
366
- });
361
+ }
367
362
 
368
- function __exportStar(m, o) {
369
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);
363
+ function __exportStar(m, exports) {
364
+ for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) exports[p] = m[p];
370
365
  }
371
366
 
372
367
  function __values(o) {
@@ -398,31 +393,19 @@ function __read(o, n) {
398
393
  return ar;
399
394
  }
400
395
 
401
- /** @deprecated */
402
396
  function __spread() {
403
397
  for (var ar = [], i = 0; i < arguments.length; i++)
404
398
  ar = ar.concat(__read(arguments[i]));
405
399
  return ar;
406
400
  }
407
401
 
408
- /** @deprecated */
409
402
  function __spreadArrays() {
410
403
  for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
411
404
  for (var r = Array(s), k = 0, i = 0; i < il; i++)
412
405
  for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
413
406
  r[k] = a[j];
414
407
  return r;
415
- }
416
-
417
- function __spreadArray(to, from, pack) {
418
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
419
- if (ar || !(i in from)) {
420
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
421
- ar[i] = from[i];
422
- }
423
- }
424
- return to.concat(ar || Array.prototype.slice.call(from));
425
- }
408
+ };
426
409
 
427
410
  function __await(v) {
428
411
  return this instanceof __await ? (this.v = v, this) : new __await(v);
@@ -459,17 +442,11 @@ function __makeTemplateObject(cooked, raw) {
459
442
  return cooked;
460
443
  };
461
444
 
462
- var __setModuleDefault = Object.create ? (function(o, v) {
463
- Object.defineProperty(o, "default", { enumerable: true, value: v });
464
- }) : function(o, v) {
465
- o["default"] = v;
466
- };
467
-
468
445
  function __importStar(mod) {
469
446
  if (mod && mod.__esModule) return mod;
470
447
  var result = {};
471
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
472
- __setModuleDefault(result, mod);
448
+ if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
449
+ result.default = mod;
473
450
  return result;
474
451
  }
475
452
 
@@ -477,17 +454,19 @@ function __importDefault(mod) {
477
454
  return (mod && mod.__esModule) ? mod : { default: mod };
478
455
  }
479
456
 
480
- function __classPrivateFieldGet(receiver, state, kind, f) {
481
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
482
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
483
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
457
+ function __classPrivateFieldGet(receiver, privateMap) {
458
+ if (!privateMap.has(receiver)) {
459
+ throw new TypeError("attempted to get private field on non-instance");
460
+ }
461
+ return privateMap.get(receiver);
484
462
  }
485
463
 
486
- function __classPrivateFieldSet(receiver, state, value, kind, f) {
487
- if (kind === "m") throw new TypeError("Private method is not writable");
488
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
489
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
490
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
464
+ function __classPrivateFieldSet(receiver, privateMap, value) {
465
+ if (!privateMap.has(receiver)) {
466
+ throw new TypeError("attempted to set private field on non-instance");
467
+ }
468
+ privateMap.set(receiver, value);
469
+ return value;
491
470
  }
492
471
 
493
472
  class MethodHandler {
@@ -755,6 +734,34 @@ const getSystemInfo = (options = {}) => __awaiter(void 0, void 0, void 0, functi
755
734
  const updateWeChatApp = temporarilyNotSupport('updateWeChatApp');
756
735
  const getUpdateManager = temporarilyNotSupport('getUpdateManager');
757
736
 
737
+ const appShowCallbackManager = new CallbackManager();
738
+ const appHideCallbackManager = new CallbackManager();
739
+ const getApp$1 = () => {
740
+ var _a;
741
+ const path = (_a = Taro__default["default"].Current.page) === null || _a === void 0 ? void 0 : _a.path;
742
+ return {
743
+ /** 小程序切前台的路径 */
744
+ path: path === null || path === void 0 ? void 0 : path.substring(0, path.indexOf('?')),
745
+ /** 小程序切前台的 query 参数 */
746
+ query: queryString.parse(location.search),
747
+ /** 来源信息。 */
748
+ referrerInfo: {},
749
+ /** 小程序切前台的[场景值](https://developers.weixin.qq.com/miniprogram/dev/framework/app-service/scene.html) */
750
+ scene: 0,
751
+ /** shareTicket,详见[获取更多转发信息](https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/share.html) */
752
+ shareTicket: ''
753
+ };
754
+ };
755
+ const appShowListener = () => {
756
+ if (document.visibilityState !== 'hidden') {
757
+ appShowCallbackManager.trigger(getApp$1());
758
+ }
759
+ };
760
+ const appHideListener = () => {
761
+ if (document.visibilityState === 'hidden') {
762
+ appHideCallbackManager.trigger(getApp$1());
763
+ }
764
+ };
758
765
  // 应用级事件
759
766
  const onUnhandledRejection = temporarilyNotSupport('onUnhandledRejection');
760
767
  const onThemeChange = temporarilyNotSupport('onThemeChange');
@@ -762,16 +769,36 @@ const onPageNotFound = temporarilyNotSupport('onPageNotFound');
762
769
  const onError = temporarilyNotSupport('onError');
763
770
  const onAudioInterruptionEnd = temporarilyNotSupport('onAudioInterruptionEnd');
764
771
  const onAudioInterruptionBegin = temporarilyNotSupport('onAudioInterruptionBegin');
765
- const onAppShow = temporarilyNotSupport('onAppShow');
766
- const onAppHide = temporarilyNotSupport('onAppHide');
772
+ const onAppShow = callback => {
773
+ appShowCallbackManager.add(callback);
774
+ if (appShowCallbackManager.count() === 1) {
775
+ window.addEventListener('visibilitychange', appShowListener);
776
+ }
777
+ };
778
+ const onAppHide = callback => {
779
+ appHideCallbackManager.add(callback);
780
+ if (appHideCallbackManager.count() === 1) {
781
+ window.addEventListener('visibilitychange', appHideListener);
782
+ }
783
+ };
767
784
  const offUnhandledRejection = temporarilyNotSupport('offUnhandledRejection');
768
785
  const offThemeChange = temporarilyNotSupport('offThemeChange');
769
786
  const offPageNotFound = temporarilyNotSupport('offPageNotFound');
770
787
  const offError = temporarilyNotSupport('offError');
771
788
  const offAudioInterruptionEnd = temporarilyNotSupport('offAudioInterruptionEnd');
772
789
  const offAudioInterruptionBegin = temporarilyNotSupport('offAudioInterruptionBegin');
773
- const offAppShow = temporarilyNotSupport('offAppShow');
774
- const offAppHide = temporarilyNotSupport('offAppHide');
790
+ const offAppShow = callback => {
791
+ appShowCallbackManager.remove(callback);
792
+ if (appShowCallbackManager.count() === 0) {
793
+ window.removeEventListener('visibilitychange', appShowListener);
794
+ }
795
+ };
796
+ const offAppHide = callback => {
797
+ appHideCallbackManager.remove(callback);
798
+ if (appHideCallbackManager.count() === 0) {
799
+ window.removeEventListener('visibilitychange', appHideListener);
800
+ }
801
+ };
775
802
 
776
803
  // 生命周期
777
804
  const getLaunchOptionsSync = temporarilyNotSupport('getLaunchOptionsSync');
@@ -1766,7 +1793,7 @@ const vibrator = function vibrator(mm) {
1766
1793
  return window.navigator.vibrate(mm);
1767
1794
  }
1768
1795
  catch (e) {
1769
- console.warn('当前浏览器不支持vibrate');
1796
+ console.warn('当前浏览器不支持 vibrate');
1770
1797
  }
1771
1798
  };
1772
1799
  /**
@@ -1774,12 +1801,11 @@ const vibrator = function vibrator(mm) {
1774
1801
  */
1775
1802
  const vibrateShort = ({ success, fail, complete } = {}) => {
1776
1803
  const handle = new MethodHandler({ name: 'vibrateShort', success, fail, complete });
1777
- if (vibrator) {
1778
- vibrator(15);
1804
+ if (vibrator(15)) {
1779
1805
  return handle.success();
1780
1806
  }
1781
1807
  else {
1782
- return handle.fail();
1808
+ return handle.fail({ errMsg: 'style is not support' });
1783
1809
  }
1784
1810
  };
1785
1811
  /**
@@ -1787,12 +1813,11 @@ const vibrateShort = ({ success, fail, complete } = {}) => {
1787
1813
  */
1788
1814
  const vibrateLong = ({ success, fail, complete } = {}) => {
1789
1815
  const handle = new MethodHandler({ name: 'vibrateLong', success, fail, complete });
1790
- if (vibrator) {
1791
- vibrator(400);
1816
+ if (vibrator(400)) {
1792
1817
  return handle.success();
1793
1818
  }
1794
1819
  else {
1795
- return handle.fail();
1820
+ return handle.fail({ errMsg: 'style is not support' });
1796
1821
  }
1797
1822
  };
1798
1823
 
@@ -2030,6 +2055,7 @@ const onLocationChange = temporarilyNotSupport('onLocationChange');
2030
2055
  const offLocationChangeError = temporarilyNotSupport('offLocationChangeError');
2031
2056
  const offLocationChange = temporarilyNotSupport('offLocationChange');
2032
2057
  const choosePoi = temporarilyNotSupport('choosePoi');
2058
+ const getFuzzyLocation = temporarilyNotSupport('getFuzzyLocation');
2033
2059
 
2034
2060
  class InnerAudioContext {
2035
2061
  constructor() {
@@ -2093,7 +2119,7 @@ class InnerAudioContext {
2093
2119
  get duration() { var _a; return ((_a = this.Instance) === null || _a === void 0 ? void 0 : _a.duration) || 0; }
2094
2120
  set loop(e) { this.setProperty('loop', e); }
2095
2121
  get loop() { var _a; return ((_a = this.Instance) === null || _a === void 0 ? void 0 : _a.loop) || false; }
2096
- get paused() { var _a; return ((_a = this.Instance) === null || _a === void 0 ? void 0 : _a.paused) || true; }
2122
+ get paused() { var _a, _b; return (_b = (_a = this.Instance) === null || _a === void 0 ? void 0 : _a.paused) !== null && _b !== void 0 ? _b : true; }
2097
2123
  set src(e) { this.setProperty('src', e); }
2098
2124
  get src() { var _a; return ((_a = this.Instance) === null || _a === void 0 ? void 0 : _a.src) || ''; }
2099
2125
  set volume(e) { this.setProperty('volume', e); }
@@ -3947,6 +3973,7 @@ class Modal {
3947
3973
  this.text.setAttribute('style', inlineStyle(textStyle));
3948
3974
  }
3949
3975
  else {
3976
+ this.title.textContent = '';
3950
3977
  // block => none
3951
3978
  this.title.style.display = 'none';
3952
3979
  const textCSS = Object.assign(Object.assign({}, textStyle), { padding: '40px 20px 26px', color: '#353535' });
@@ -4953,7 +4980,7 @@ function filter(fields, dom, selector) {
4953
4980
  }
4954
4981
  }
4955
4982
  else {
4956
- // TODO https://developers.weixin.qq.com/miniprogram/dev/component/scroll-view.html
4983
+ // TODO https://developers.weixin.qq.com/miniprogram/dev/api/ui/scroll/ScrollViewContext.html
4957
4984
  // if (/^taro-scroll-view-core/i.test(tagName))
4958
4985
  res.nodeCanvasType = '';
4959
4986
  res.node = dom;
@@ -5175,32 +5202,32 @@ taro.initPxTransform = initPxTransform;
5175
5202
  taro.canIUseWebp = canIUseWebp;
5176
5203
 
5177
5204
  Object.defineProperty(exports, 'getCurrentPages', {
5178
- enumerable: true,
5179
- get: function () { return router.getCurrentPages; }
5205
+ enumerable: true,
5206
+ get: function () { return router.getCurrentPages; }
5180
5207
  });
5181
5208
  Object.defineProperty(exports, 'history', {
5182
- enumerable: true,
5183
- get: function () { return router.history; }
5209
+ enumerable: true,
5210
+ get: function () { return router.history; }
5184
5211
  });
5185
5212
  Object.defineProperty(exports, 'navigateBack', {
5186
- enumerable: true,
5187
- get: function () { return router.navigateBack; }
5213
+ enumerable: true,
5214
+ get: function () { return router.navigateBack; }
5188
5215
  });
5189
5216
  Object.defineProperty(exports, 'navigateTo', {
5190
- enumerable: true,
5191
- get: function () { return router.navigateTo; }
5217
+ enumerable: true,
5218
+ get: function () { return router.navigateTo; }
5192
5219
  });
5193
5220
  Object.defineProperty(exports, 'reLaunch', {
5194
- enumerable: true,
5195
- get: function () { return router.reLaunch; }
5221
+ enumerable: true,
5222
+ get: function () { return router.reLaunch; }
5196
5223
  });
5197
5224
  Object.defineProperty(exports, 'redirectTo', {
5198
- enumerable: true,
5199
- get: function () { return router.redirectTo; }
5225
+ enumerable: true,
5226
+ get: function () { return router.redirectTo; }
5200
5227
  });
5201
5228
  Object.defineProperty(exports, 'switchTab', {
5202
- enumerable: true,
5203
- get: function () { return router.switchTab; }
5229
+ enumerable: true,
5230
+ get: function () { return router.switchTab; }
5204
5231
  });
5205
5232
  exports.Behavior = Behavior;
5206
5233
  exports.Current = Current;
@@ -5321,6 +5348,7 @@ exports.getExtConfig = getExtConfig;
5321
5348
  exports.getExtConfigSync = getExtConfigSync;
5322
5349
  exports.getFileInfo = getFileInfo;
5323
5350
  exports.getFileSystemManager = getFileSystemManager;
5351
+ exports.getFuzzyLocation = getFuzzyLocation;
5324
5352
  exports.getGroupEnterInfo = getGroupEnterInfo;
5325
5353
  exports.getHCEState = getHCEState;
5326
5354
  exports.getImageInfo = getImageInfo;