@conecli/cone-render 0.8.20-shop.21 → 0.8.20-shop.211

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 (163) hide show
  1. package/README.md +7 -1
  2. package/dist/api/index.ts +1 -1
  3. package/dist/assets/icon_blue_info.svg +1 -0
  4. package/dist/common/const.ts +1 -1
  5. package/dist/common/environmentType.ts +1 -0
  6. package/dist/common/index.h5.ts +1 -1
  7. package/dist/common/index.jd.ts +1 -1
  8. package/dist/common/index.ts +1 -1
  9. package/dist/common/index.weapp.ts +1 -1
  10. package/dist/common/jdplayerSdk.ts +1 -0
  11. package/dist/common/jssdk.ts +1 -0
  12. package/dist/common/pageType.ts +1 -0
  13. package/dist/common/sgmCustomCode.ts +1 -0
  14. package/dist/common/token/index.h5.ts +1 -1
  15. package/dist/common/token/token.jd.ts +1 -1
  16. package/dist/common/token/token.ts +1 -1
  17. package/dist/common/wxappApi.jd.ts +1 -0
  18. package/dist/common/wxappApi.ts +1 -1
  19. package/dist/components/ErrorBoundary.tsx +1 -1
  20. package/dist/components/base/CommonFloorHead/index.module.scss +126 -111
  21. package/dist/components/base/CommonFloorHead/index.tsx +1 -1
  22. package/dist/components/base/CountDown/index.module.scss +49 -44
  23. package/dist/components/base/CountDown/index.tsx +1 -1
  24. package/dist/components/base/CustomScrollView/index.jd.tsx +1 -0
  25. package/dist/components/base/CustomScrollView/index.module.scss +7 -0
  26. package/dist/components/base/CustomScrollView/index.tsx +1 -1
  27. package/dist/components/base/CustomVideo/common.ts +1 -0
  28. package/dist/components/base/CustomVideo/index.module.scss +1 -1
  29. package/dist/components/base/CustomVideo/index.tsx +1 -1
  30. package/dist/components/base/Dialog/index.module.scss +16 -0
  31. package/dist/components/base/Dialog/index.tsx +1 -1
  32. package/dist/components/base/Exposure/index.h5.tsx +1 -1
  33. package/dist/components/base/ExposureSmart/const.ts +1 -0
  34. package/dist/components/base/ExposureSmart/index.h5.module.scss +30 -6
  35. package/dist/components/base/ExposureSmart/index.h5.tsx +1 -1
  36. package/dist/components/base/ExposureSmart/index.module.scss +20 -9
  37. package/dist/components/base/ExposureSmart/index.tsx +1 -1
  38. package/dist/components/base/ExposureSmart/reporter.tsx +1 -1
  39. package/dist/components/base/InOrOutViewObserver/index.tsx +1 -1
  40. package/dist/components/base/InViewRender/index.tsx +1 -1
  41. package/dist/components/base/InViewRender/index.weapp.tsx +1 -1
  42. package/dist/components/base/ItemViewExposureSmart/index.module.scss +8 -0
  43. package/dist/components/base/ItemViewExposureSmart/index.tsx +1 -0
  44. package/dist/components/base/LazyLayoutLoad/index.tsx +1 -1
  45. package/dist/components/base/LazyLayoutLoad/index.weapp.tsx +1 -1
  46. package/dist/components/base/LazyLoadImage/const.ts +1 -1
  47. package/dist/components/base/LazyLoadImage/index.h5.module.scss +24 -20
  48. package/dist/components/base/LazyLoadImage/index.h5.tsx +1 -1
  49. package/dist/components/base/MobileCommonHeader/index.module.scss +17 -0
  50. package/dist/components/base/MobileCommonHeader/index.tsx +1 -0
  51. package/dist/components/base/NetworkDataError/const.ts +1 -1
  52. package/dist/components/base/NetworkDataError/index.module.scss +125 -69
  53. package/dist/components/base/NetworkDataError/index.tsx +1 -1
  54. package/dist/components/base/Price/Base/index.module.scss +12 -0
  55. package/dist/components/base/Price/Base/index.tsx +1 -1
  56. package/dist/components/base/Price/Double/index.module.scss +32 -0
  57. package/dist/components/base/Price/Double/index.tsx +1 -1
  58. package/dist/components/base/Price/index.tsx +1 -1
  59. package/dist/components/base/Skeleton/index.tsx +1 -1
  60. package/dist/components/debug/DebugLayout/index.module.scss +67 -0
  61. package/dist/components/debug/DebugLayout/index.tsx +1 -0
  62. package/dist/components/debug/DebugLayout/utils.ts +1 -0
  63. package/dist/components/decorate/DecorateFloorModule/index.module.scss +32 -2
  64. package/dist/components/decorate/DecorateFloorModule/index.tsx +1 -1
  65. package/dist/components/decorate/EmptyFloorModule/index.tsx +1 -1
  66. package/dist/components/decorate/PlaceHolder/index.tsx +1 -1
  67. package/dist/components/floorItem.jd.tsx +1 -1
  68. package/dist/components/floorItem.tsx +1 -1
  69. package/dist/components/floorItem.weapp.tsx +1 -1
  70. package/dist/components/isv/Floor/index.tsx +1 -1
  71. package/dist/components/remoteFloorItem.tsx +1 -0
  72. package/dist/interface/common.ts +1 -1
  73. package/dist/interface/component.ts +1 -1
  74. package/dist/interface/jumpEventReport.ts +1 -1
  75. package/dist/interface/service.ts +1 -1
  76. package/dist/interface/utils.ts +1 -1
  77. package/dist/jumpEventReport/base.ts +1 -1
  78. package/dist/jumpEventReport/const.ts +1 -1
  79. package/dist/jumpEventReport/createReportFloorData.ts +1 -1
  80. package/dist/jumpEventReport/index.h5.ts +1 -1
  81. package/dist/jumpEventReport/index.jd.ts +1 -1
  82. package/dist/jumpEventReport/index.ts +1 -1
  83. package/dist/jumpEventReport/index.weapp.ts +1 -1
  84. package/dist/jumpEventReport/jdJumpJdApp.ts +1 -1
  85. package/dist/jumpEventReport/jumpUrlConfig/base.ts +1 -1
  86. package/dist/jumpEventReport/logEventConfig.ts +1 -1
  87. package/dist/jumpEventReport/web/report.ts +1 -1
  88. package/dist/jumpEventReport/web.base.ts +1 -1
  89. package/dist/jumpEventReport/web.jd.ts +1 -1
  90. package/dist/jumpEventReport/web.jdb.ts +1 -1
  91. package/dist/jumpEventReport/web.jdjch.ts +1 -0
  92. package/dist/jumpEventReport/web.jxwxapp.ts +1 -0
  93. package/dist/jumpEventReport/web.pc.ts +1 -0
  94. package/dist/jumpEventReport/web.tjapp.ts +1 -0
  95. package/dist/jumpEventReport/web.tjm.ts +1 -0
  96. package/dist/jumpEventReport/web.wxapp.ts +1 -1
  97. package/dist/language/en_US.json +178 -0
  98. package/dist/language/zh_CN.json +178 -0
  99. package/dist/language/zh_HK.json +178 -0
  100. package/dist/libs/taroAppReport.js +2 -2
  101. package/dist/modules/ContainerFloorList/index.h5.module.scss +66 -27
  102. package/dist/modules/ContainerFloorList/index.h5.tsx +1 -1
  103. package/dist/modules/ContainerFloorList/index.tsx +1 -1
  104. package/dist/open/api/device.ts +1 -1
  105. package/dist/open/api/environment.ts +1 -1
  106. package/dist/open/api/index.ts +1 -1
  107. package/dist/open/api/jump/business.ts +1 -0
  108. package/dist/open/api/jump/index.ts +1 -0
  109. package/dist/open/api/jump/minPath.ts +1 -0
  110. package/dist/open/api/jump/side.ts +1 -0
  111. package/dist/open/api/jump/webUrl.ts +1 -0
  112. package/dist/open/api/jump copy.ts +1 -0
  113. package/dist/open/api/request.ts +1 -1
  114. package/dist/open/api/shopMember.ts +1 -1
  115. package/dist/open/api/track.ts +1 -1
  116. package/dist/open/api/util.ts +1 -1
  117. package/dist/open/components/index.ts +1 -1
  118. package/dist/sass/app.h5.scss +289 -212
  119. package/dist/sass/base.scss +195 -137
  120. package/dist/service/bMallConst.ts +1 -1
  121. package/dist/service/fetchGateway.ts +1 -1
  122. package/dist/service/fetchGateway.weapp.ts +1 -0
  123. package/dist/service/http/colorSign.ts +1 -1
  124. package/dist/service/http/const.ts +1 -1
  125. package/dist/service/http/h5Http.ts +1 -0
  126. package/dist/service/http/index.h5.ts +1 -0
  127. package/dist/service/requestServer.h5.ts +1 -0
  128. package/dist/service/requestServer.ts +1 -1
  129. package/dist/service/requestServer.weapp.ts +1 -0
  130. package/dist/utils/connectNativeJsBridge.ts +1 -1
  131. package/dist/utils/connectNativeJsBridge.weapp.ts +1 -1
  132. package/dist/utils/draExceptionAndProfile.ts +1 -1
  133. package/dist/utils/h5Utils.ts +1 -1
  134. package/dist/utils/index.h5.ts +1 -1
  135. package/dist/utils/index.ts +1 -1
  136. package/dist/utils/index.weapp.ts +1 -1
  137. package/dist/utils/intersectionObserver.ts +1 -1
  138. package/dist/utils/jm-common.js +1 -1
  139. package/dist/utils/jumpExtMapUtil.h5.ts +1 -0
  140. package/dist/utils/jumpExtMapUtil.ts +1 -0
  141. package/dist/utils/sColor.js +1 -0
  142. package/dist/utils/sgmCodeUtils.ts +1 -0
  143. package/dist/utils/taroRenderUtil.ts +1 -0
  144. package/dist/utils/utils.ts +1 -1
  145. package/dist/wxapp/api/helper.js +1 -0
  146. package/dist/wxapp/common/address_api/address_api_v2.js +1 -0
  147. package/dist/wxapp/common/user_info.js +1 -1
  148. package/dist/wxapp/components/launch-app/index.js +1 -0
  149. package/dist/wxapp/components/launch-app/index.json +5 -0
  150. package/dist/wxapp/components/launch-app/index.wxml +0 -0
  151. package/dist/wxapp/components/launch-app/index.wxss +0 -0
  152. package/dist/wxapp/components/subscribe-guider/helper.js +1 -0
  153. package/dist/wxapp/components/subscribe-guider/index.js +1 -0
  154. package/dist/wxapp/components/subscribe-guider/index.json +5 -0
  155. package/dist/wxapp/components/subscribe-guider/index.wxml +0 -0
  156. package/dist/wxapp/components/subscribe-guider/index.wxss +0 -0
  157. package/package.json +148 -115
  158. package/dist/components/base/Skeleton/old.tsx +0 -1
  159. package/dist/customHooks/useDocumentVisibilitychange.ts +0 -1
  160. package/dist/open/api/jump.ts +0 -1
  161. package/dist/utils/memberFormatUtils.js +0 -1
  162. /package/dist/service/{bMallConst.wxapp.ts → bMallConst.weapp.ts} +0 -0
  163. /package/dist/service/http/{colorSign.wxapp.ts → colorSign.weapp.ts} +0 -0
@@ -1 +1 @@
1
- import React, {useRef, useEffect} from 'react'
1
+ import React, { useRef, useEffect } from 'react';
2
2
  isH5AndJdShopView,
3
3
  isAndroidDevice,
4
4
  isJdAndAndroidDevice,
5
5
  isJdAndIosDevice,
6
6
  isIosDevice,
7
7
  isJdApp,
8
8
  isWxMin,
9
9
  isH5AndJdShopViewH5Scroll,
10
10
  isH5AndJdShopH5CustomScrollView,
11
11
  isH5,
12
12
  isAppClassifyPage,
13
13
  lodashThrottle,
14
14
  START: 'start',
15
15
  MOVE: 'move',
16
16
  END: 'end',
17
17
  '当前业务是否忽略原生阻止底层滚动',
18
18
  isIgnorePreventNative,
19
19
  ignoreBuildTypeList,
20
20
  newBuildType,
21
21
  const { scrollX, children, style = {}, iosNeedDisableVertical, className, ...otherProps } = props;
22
22
  const rootEleNode = isH5 && document ? document.querySelector('body') : null;
23
23
  const needShowHighVersion =
24
24
  isH5AndJdShopViewH5Scroll &&
25
25
  !(global.info.queryInfo?.downgraded && global.info.queryInfo.downgraded === 'true');
26
26
  const mLastClientPosRef = useRef({
27
27
  mLastClientX: 0,
28
28
  mLastClientY: 0,
29
29
  });
30
30
  const isJdAndH5ScrollState = needShowHighVersion || isH5AndJdShopH5CustomScrollView;
31
31
 
32
32
  const touchstartEventBubbleFunc = (e) => {
33
33
  const isH5SwiperCustomEle = e?.target?.closest('.J_h5SwiperCustom');
34
34
  if (!isH5SwiperCustomEle) {
35
35
  const hasCustomEle = e
36
36
  ? e?.target?.closest('.J_customScroll') || e?.target?.closest('.J_customLayout')
37
37
  : false;
38
38
  if (isJdAndAndroidDevice && !hasCustomEle) {
39
39
  window?.JdAndroid &&
40
40
  window?.JdAndroid?.requestEvent &&
41
41
  window.JdAndroid.requestEvent(false);
42
42
  }
43
43
  !hasCustomEle &&
44
44
  rootEleNode &&
45
45
  rootEleNode.classList.contains('over-hidden') &&
46
46
  rootEleNode.classList.remove('over-hidden');
47
47
  console.log(
48
48
  'customScrollView所在页面document touch start事件是否有J_customScroll元素',
49
49
  hasCustomEle,
50
50
  '根元素是否有over-hidden',
51
51
  rootEleNode.classList,
52
52
  );
53
53
  }
54
54
  };
55
55
  const touchstartEventCaptureFunc = (e) => {
56
56
  if (e && !e?.target?.closest('.J_h5SwiperCustom') && !e?.target?.closest('.J_customLayout')) {
57
57
  rootEleNode &&
58
58
  rootEleNode.classList.contains('over-hidden') &&
59
59
  rootEleNode.classList.remove('over-hidden');
60
60
  console.log(
61
61
  'customScrollView所在页面document touch start事件捕获阶段移除根元素是否有over-hidden',
62
62
  rootEleNode.classList,
63
63
  );
64
64
  }
65
65
  };
66
66
  useEffect(() => {
67
67
  isJdApp &&
68
68
  !window.JDJshopViewInfo.getAndroidTouchSlopState &&
69
69
  nativePageGetScaledTouchSlop((res) => {
70
70
  console.log('获取安卓系统滑动阈值', res);
71
71
  window.JDJshopViewInfo.androidTouchSlop = res;
72
72
  window.JDJshopViewInfo.getAndroidTouchSlopState = true;
73
73
  });
74
74
  if (isJdAndH5ScrollState && rootEleNode && !rootEleAddEventListenerState) {
75
75
  global?.removeJdAndroidRquestEventForTouchStart &&
76
76
  global.removeJdAndroidRquestEventForTouchStart();
77
77
  rootEleNode.addEventListener('touchstart', touchstartEventBubbleFunc, false);
78
78
 
79
79
  rootEleNode.addEventListener('touchstart', touchstartEventCaptureFunc, true);
80
80
  rootEleAddEventListenerState = true;
81
81
  console.warn('customScrollView 初始化document监听完成');
82
82
  }
83
83
  return () => {
84
84
  if (isJdAndH5ScrollState && rootEleNode && rootEleAddEventListenerState) {
85
85
  console.warn('customScrollView document监听取消完成');
86
86
  rootEleNode.removeEventListener('touchstart', touchstartEventBubbleFunc, false);
87
87
  rootEleNode.removeEventListener('touchstart', touchstartEventCaptureFunc, true);
88
88
  }
89
89
  };
90
90
  }, []);
91
91
 
92
92
  const androidDeviceStopNativeScrollEvent = (touchType) => {
93
93
  isJdApp &&
94
94
  isAndroidDevice &&
95
95
  window?.JdAndroid &&
96
96
  window?.JdAndroid?.requestEvent &&
97
97
  window.JdAndroid.requestEvent(touchType === TouchType.START);
98
98
  console.log('触发window?.JdAndroid.requestEvent', touchType === TouchType.START, touchType);
99
99
  };
100
100
  const iosDeviceStopNativeScrollEvent = (e, touchType, sendIosState = true) => {
101
101
  e && e.stopPropagation();
102
102
  sendIosState && iosDeviceSendRouter(touchType);
103
103
  };
104
104
  const iosDeviceSendRouter = (state) => {
105
105
  window?.webkit?.messageHandlers?.MobileNavi?.postMessage?.({
106
106
  method: 'callRouterModuleWithParams',
107
107
  params: {
108
108
  routerURL: 'router://JDShopModule/processShoph5SlideState',
109
109
  routerParam: {
110
110
  slideDirection: 'horizontal',
111
111
  needDisableVertical: `${iosNeedDisableVertical}`,
112
112
  state,
113
113
  },
114
114
  callBackId: new Date().getTime(),
115
115
  },
116
116
  });
117
117
  };
118
118
  const stopNativeScrollEvent = (e: Event, touchType, sendIosState = true) => {
119
119
  if (isJdApp) {
120
120
  isIosDevice &&
121
121
  !isAppClassifyPage &&
122
122
  iosDeviceStopNativeScrollEvent(e, touchType, sendIosState);
123
123
  isAndroidDevice && androidDeviceStopNativeScrollEvent(touchType);
124
124
  console.log(
125
125
  '当前customScrollView touch事件',
126
126
  touchType,
127
127
  e,
128
128
  '是否是e instanceof CustomEvent',
129
129
  e instanceof CustomEvent,
130
130
  );
131
131
  }
132
132
  };
133
133
  const GetSlideAngle = (dx, dy) => {
134
134
  return (Math.atan2(dy, dx) * 180) / Math.PI;
135
135
  };
136
136
  const GetSlideDirection = (startX, startY, endX, endY) => {
137
137
  const dy = startY - endY;
138
138
  const dx = endX - startX;
139
139
  let result = 0;
140
140
  if (Math.abs(dx) < 2 && Math.abs(dy) < 2) {
141
141
  return result;
142
142
  }
143
143
  const angle = GetSlideAngle(dx, dy);
144
144
  if (angle >= -45 && angle < 45) {
145
145
  result = 4;
146
146
  } else if (angle >= 45 && angle < 135) {
147
147
  result = 1;
148
148
  } else if (angle >= -135 && angle < -45) {
149
149
  result = 2;
150
150
  } else if ((angle >= 135 && angle <= 180) || (angle >= -180 && angle < -135)) {
151
151
  result = 3;
152
152
  }
153
153
  return result;
154
154
  };
155
155
  const changeTouchStart = (e) => {
156
156
  if (isJdApp) {
157
157
  stopNativeScrollEvent(e, TouchType.START, !iosNeedDisableVertical);
158
158
  if (isH5AndJdShopView || isH5AndJdShopH5CustomScrollView) {
159
159
  isJdAndH5ScrollState && rootEleNode && rootEleNode.classList.add('over-hidden');
160
160
  console.info(
161
161
  'customScrollView touchstart 当前根元素是否添加还是删除over-hidden',
162
162
  TouchType.START,
163
163
  rootEleNode.classList,
164
164
  );
165
165
  const touchEvent = e?.originalEvent?.targetTouches[0] || e?.targetTouches[0];
166
166
  mLastClientPosRef.current.mLastClientX = touchEvent.clientX;
167
167
  mLastClientPosRef.current.mLastClientY = touchEvent.clientY;
168
168
  console.log('ustomScrollView touchstart 获取mLastClientPosRef', mLastClientPosRef);
169
169
  }
170
170
  }
171
171
  };
172
172
  const changeTouchEnd = (e) => {
173
173
  stopNativeScrollEvent(e, TouchType.END);
174
174
  mLastClientPosRef.current.mLastClientX = 0;
175
175
  mLastClientPosRef.current.mLastClientY = 0;
176
176
  console.log('ustomScrollView touchend 获取mLastClientPosRef', mLastClientPosRef);
177
177
  };
178
178
  const triggerIosTouchMove = () => {
179
179
  isJdAndIosDevice && iosDeviceStopNativeScrollEvent(null, TouchType.START, true);
180
180
  };
181
181
 
182
182
  const lodashThrottleTriggerIosTouchMove = lodashThrottle(triggerIosTouchMove, 500);
183
183
 
184
184
  const recoverRootEleVerticalScroll = (touchEvent) => {
185
185
  const direction = GetSlideDirection(
186
186
  mLastClientPosRef.current.mLastClientX,
187
187
  mLastClientPosRef.current.mLastClientY,
188
188
  touchEvent.clientX,
189
189
  touchEvent.clientY,
190
190
  );
191
191
  if (direction === 1 || direction === 2) {
192
192
  rootEleNode &&
193
193
  rootEleNode.classList.contains('over-hidden') &&
194
194
  rootEleNode.classList.remove('over-hidden');
195
195
  }
196
196
  console.log(
197
197
  '获取当前滚动方向,向上向下1、2',
198
198
  direction,
199
199
  '根元素的classList',
200
200
  rootEleNode.classList,
201
201
  'mLastClientPosRef.current.mLastClientX',
202
202
  mLastClientPosRef.current.mLastClientX,
203
203
  );
204
204
  };
205
205
  const changeTouchMove = (e) => {
206
206
  if (isH5AndJdShopView || isH5AndJdShopH5CustomScrollView) {
207
207
  const touchEvent = e?.originalEvent?.targetTouches[0] || e?.targetTouches[0];
208
208
  const xDiff = Math.abs(touchEvent.clientX - mLastClientPosRef.current.mLastClientX).toFixed(
209
209
  2,
210
210
  );
211
211
  const yDiff = Math.abs(touchEvent.clientY - mLastClientPosRef.current.mLastClientY).toFixed(
212
212
  2,
213
213
  );
214
214
  if (isJdApp) {
215
215
  if (xDiff >= window.JDJshopViewInfo.androidTouchSlop) {
216
216
  console.log(
217
217
  '横向滚动触发',
218
218
  xDiff,
219
219
  touchEvent,
220
220
  window.JDJshopViewInfo.androidTouchSlop,
221
221
  'iosNeedDisableVertical',
222
222
  iosNeedDisableVertical,
223
223
  );
224
224
  iosNeedDisableVertical && isJdApp && lodashThrottleTriggerIosTouchMove();
225
225
  } else if (yDiff > window.JDJshopViewInfo.androidTouchSlop) {
226
226
  console.log('纵向滚动触发', yDiff, touchEvent, window.JDJshopViewInfo.androidTouchSlop);
227
227
  stopNativeScrollEvent(e, TouchType.END);
228
228
  }
229
229
  }
230
230
  isJdAndH5ScrollState && recoverRootEleVerticalScroll(touchEvent);
231
231
  }
232
232
  };
233
233
  if (scrollX && isJdApp && !isIgnorePreventNative) {
234
234
  return (
235
235
  <ScrollView
236
236
  scrollX
237
237
  onTouchStart={changeTouchStart}
238
238
  onTouchEnd={changeTouchEnd}
239
239
  onTouchCancel={changeTouchEnd}
240
240
  onTouchMove={changeTouchMove}
241
241
  enhanced
242
242
  showScrollbar={false}
243
243
  style={style}
244
244
  className={classNames(
245
245
  className,
246
246
  {
247
247
  [customScrollViewStyle['d-custom-ios-h5-extend-border-radius']]: isIosDevice,
248
248
  },
249
249
  'J_customScroll',
250
250
  )}
251
251
  {...otherProps}
252
252
  >
253
253
  {children}
254
254
  </ScrollView>
255
255
  );
256
256
  } else {
257
257
  return (
258
258
  <ScrollView
259
259
  scrollX
260
260
  enhanced
261
261
  showScrollbar={false}
262
262
  {...otherProps}
263
263
  className={classNames(
264
264
  className,
265
265
  {
266
266
  [customScrollViewStyle['d-custom-ios-mini-extend-border-radius']]:
267
267
  isIosDevice && isWxMin && scrollX && style['borderRadius'],
268
268
  },
269
269
  {
270
270
  [customScrollViewStyle['d-custom-ios-h5-extend-border-radius']]: isIosDevice,
271
271
  },
272
272
  {
273
273
  [customScrollViewStyle['d-custom-mini-hide-scroll']]: isWxMin,
274
274
  },
275
275
  )}
276
276
  style={style}
277
277
  >
278
278
  {children}
279
279
  </ScrollView>
280
280
  );
281
281
  }
282
282
  style: {},
283
283
  scrollX: false,
284
284
  scrollY: false,
285
285
  scrollWithAnimation: true,
286
286
  iosNeedDisableVertical: false,
287
287
  className: null,
@@ -0,0 +1 @@
1
+ const MediaError = {
2
  MEDIA_ERR_ABORTED: 1,
1
3
  MEDIA_ERR_NETWORK: 2,
2
4
  MEDIA_ERR_DECODE: 3,
3
5
  MEDIA_ERR_SRC_NOT_SUPPORTED: 4,
4
6
  [MediaError.MEDIA_ERR_ABORTED]: 'MEDIA_ERR_ABORTED',
5
7
  [MediaError.MEDIA_ERR_NETWORK]: 'MEDIA_ERR_NETWORK',
6
8
  [MediaError.MEDIA_ERR_DECODE]: 'MEDIA_ERR_DECODE',
7
9
  [MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED]: 'MEDIA_ERR_SRC_NOT_SUPPORTED',
8
10
  if (!error) {
9
11
  return ''
10
12
  }
11
13
  const message = error.message
12
14
  let s = ''
13
15
  if (error?.code) {
14
16
  s += codeMap[error.code] || 'UNKNOWN'
15
17
  }
16
18
  if (message?.length > 0) {
17
19
  s += ` ${message}`
18
20
  }
19
21
  return `${error.constructor.name} ${error.code}: ${s}`
@@ -19,7 +19,7 @@
19
19
  background-repeat: no-repeat;
20
20
  background-position: center center;
21
21
  background-size: 100%;
22
- // z-index: 20;
22
+ z-index: 20;
23
23
  transform: translateZ(20px);
24
24
  width: 24px;
25
25
  height: 24px;