@tarojs/taro-h5 3.6.4 → 3.6.5-alpha.1

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/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import taro from "./api/taro";
2
- export * from "./api/index";
3
- export * from "./api/taro";
1
+ import taro from "./api/taro.js";
2
+ export * from "./api/index.js";
3
+ export * from "./api/taro.js";
4
4
  export { taro as default };
package/dist/index.esm.js CHANGED
@@ -1987,8 +1987,8 @@ function styleInject(css, ref) {
1987
1987
  }
1988
1988
  }
1989
1989
 
1990
- var css_248z = ".taro_choose_location {\n display: flex;\n position: fixed;\n top: 100%;\n z-index: 1;\n flex-direction: column;\n width: 100%;\n height: 100%;\n background-color: #fff;\n transition: ease top 0.3s; }\n .taro_choose_location_bar {\n display: flex;\n flex: 0 95px;\n height: 95px;\n background-color: #ededed;\n color: #090909; }\n .taro_choose_location_back {\n position: relative;\n flex: 0 45px;\n margin-top: 30px;\n width: 33px;\n height: 30px; }\n .taro_choose_location_back::before {\n display: block;\n position: absolute;\n left: 0;\n top: 0;\n border: solid 15px;\n border-color: transparent #090909 transparent transparent;\n width: 0;\n height: 0;\n content: \"\"; }\n .taro_choose_location_back::after {\n display: block;\n position: absolute;\n left: 3px;\n top: 0;\n border: solid 15px;\n border-color: transparent #ededed transparent transparent;\n width: 0;\n height: 0;\n content: \"\"; }\n .taro_choose_location_title {\n flex: 1;\n padding-left: 30px;\n line-height: 95px; }\n .taro_choose_location_submit {\n margin: 18px 30px 0 0;\n padding: 0;\n border: none;\n width: 110px;\n height: 60px;\n background-color: #08bf62;\n line-height: 60px;\n font-size: 28px;\n color: #fff; }\n .taro_choose_location_frame {\n flex: 1; }\n";
1991
- var stylesheet=".taro_choose_location {\n display: flex;\n position: fixed;\n top: 100%;\n z-index: 1;\n flex-direction: column;\n width: 100%;\n height: 100%;\n background-color: #fff;\n transition: ease top 0.3s; }\n .taro_choose_location_bar {\n display: flex;\n flex: 0 95px;\n height: 95px;\n background-color: #ededed;\n color: #090909; }\n .taro_choose_location_back {\n position: relative;\n flex: 0 45px;\n margin-top: 30px;\n width: 33px;\n height: 30px; }\n .taro_choose_location_back::before {\n display: block;\n position: absolute;\n left: 0;\n top: 0;\n border: solid 15px;\n border-color: transparent #090909 transparent transparent;\n width: 0;\n height: 0;\n content: \"\"; }\n .taro_choose_location_back::after {\n display: block;\n position: absolute;\n left: 3px;\n top: 0;\n border: solid 15px;\n border-color: transparent #ededed transparent transparent;\n width: 0;\n height: 0;\n content: \"\"; }\n .taro_choose_location_title {\n flex: 1;\n padding-left: 30px;\n line-height: 95px; }\n .taro_choose_location_submit {\n margin: 18px 30px 0 0;\n padding: 0;\n border: none;\n width: 110px;\n height: 60px;\n background-color: #08bf62;\n line-height: 60px;\n font-size: 28px;\n color: #fff; }\n .taro_choose_location_frame {\n flex: 1; }\n";
1990
+ var css_248z = ".taro_choose_location {\n display: flex;\n position: fixed;\n top: 100%;\n z-index: 1;\n flex-direction: column;\n width: 100%;\n height: 100%;\n background-color: #fff;\n transition: ease top 0.3s;\n}\n.taro_choose_location_bar {\n display: flex;\n flex: 0 95px;\n height: 95px;\n background-color: #ededed;\n color: #090909;\n}\n.taro_choose_location_back {\n position: relative;\n flex: 0 45px;\n margin-top: 30px;\n width: 33px;\n height: 30px;\n}\n.taro_choose_location_back::before {\n display: block;\n position: absolute;\n left: 0;\n top: 0;\n border: solid 15px;\n border-color: transparent #090909 transparent transparent;\n width: 0;\n height: 0;\n content: \"\";\n}\n.taro_choose_location_back::after {\n display: block;\n position: absolute;\n left: 3px;\n top: 0;\n border: solid 15px;\n border-color: transparent #ededed transparent transparent;\n width: 0;\n height: 0;\n content: \"\";\n}\n.taro_choose_location_title {\n flex: 1;\n padding-left: 30px;\n line-height: 95px;\n}\n.taro_choose_location_submit {\n margin: 18px 30px 0 0;\n padding: 0;\n border: none;\n width: 110px;\n height: 60px;\n background-color: #08bf62;\n line-height: 60px;\n font-size: 28px;\n color: #fff;\n}\n.taro_choose_location_frame {\n flex: 1;\n}";
1991
+ var stylesheet=".taro_choose_location {\n display: flex;\n position: fixed;\n top: 100%;\n z-index: 1;\n flex-direction: column;\n width: 100%;\n height: 100%;\n background-color: #fff;\n transition: ease top 0.3s;\n}\n.taro_choose_location_bar {\n display: flex;\n flex: 0 95px;\n height: 95px;\n background-color: #ededed;\n color: #090909;\n}\n.taro_choose_location_back {\n position: relative;\n flex: 0 45px;\n margin-top: 30px;\n width: 33px;\n height: 30px;\n}\n.taro_choose_location_back::before {\n display: block;\n position: absolute;\n left: 0;\n top: 0;\n border: solid 15px;\n border-color: transparent #090909 transparent transparent;\n width: 0;\n height: 0;\n content: \"\";\n}\n.taro_choose_location_back::after {\n display: block;\n position: absolute;\n left: 3px;\n top: 0;\n border: solid 15px;\n border-color: transparent #ededed transparent transparent;\n width: 0;\n height: 0;\n content: \"\";\n}\n.taro_choose_location_title {\n flex: 1;\n padding-left: 30px;\n line-height: 95px;\n}\n.taro_choose_location_submit {\n margin: 18px 30px 0 0;\n padding: 0;\n border: none;\n width: 110px;\n height: 60px;\n background-color: #08bf62;\n line-height: 60px;\n font-size: 28px;\n color: #fff;\n}\n.taro_choose_location_frame {\n flex: 1;\n}";
1992
1992
  styleInject(css_248z,{"insertAt":"top"});
1993
1993
 
1994
1994
  function createLocationChooser(handler, key = LOCATION_APIKEY, mapOpt = {}) {
@@ -5005,6 +5005,13 @@ const createWorker = temporarilyNotSupport('createWorker');
5005
5005
  // pollify
5006
5006
  import('intersection-observer');
5007
5007
  class TaroH5IntersectionObserver {
5008
+ // selector 的容器节点
5009
+ get container() {
5010
+ const container = (this._component !== null
5011
+ ? (findDOM(this._component) || document)
5012
+ : document);
5013
+ return container;
5014
+ }
5008
5015
  constructor(component, options = {}) {
5009
5016
  // 选项
5010
5017
  this._options = {
@@ -5021,13 +5028,6 @@ class TaroH5IntersectionObserver {
5021
5028
  this._component = component;
5022
5029
  Object.assign(this._options, options);
5023
5030
  }
5024
- // selector 的容器节点
5025
- get container() {
5026
- const container = (this._component !== null
5027
- ? (findDOM(this._component) || document)
5028
- : document);
5029
- return container;
5030
- }
5031
5031
  createInst() {
5032
5032
  // 去除原本的实例
5033
5033
  this.disconnect();
@@ -5137,6 +5137,7 @@ class MediaQueryObserver {
5137
5137
  this._mediaQueryObserver.addEventListener('change', this._listener);
5138
5138
  }
5139
5139
  else {
5140
+ // @ts-ignore
5140
5141
  this._mediaQueryObserver.addListener(this._listener);
5141
5142
  }
5142
5143
  }
@@ -5149,6 +5150,7 @@ class MediaQueryObserver {
5149
5150
  this._mediaQueryObserver.removeEventListener('change', this._listener);
5150
5151
  }
5151
5152
  else {
5153
+ // @ts-ignore
5152
5154
  this._mediaQueryObserver.removeListener(this._listener);
5153
5155
  }
5154
5156
  }