@conecli/cone-render 0.10.1-beta.8 → 0.10.1-beta.9

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 (34) hide show
  1. package/dist/common/const.ts +1 -1
  2. package/dist/common/index.h5.ts +1 -1
  3. package/dist/common/jssdk.ts +1 -1
  4. package/dist/common/token/token.jd.ts +1 -1
  5. package/dist/components/base/CustomScrollView/index.tsx +1 -1
  6. package/dist/components/base/InOrOutViewObserver/index.tsx +1 -1
  7. package/dist/components/base/InViewRender/index.tsx +1 -1
  8. package/dist/components/base/InViewRender/index.weapp.tsx +1 -1
  9. package/dist/components/base/LazyLayoutLoad/index.tsx +1 -1
  10. package/dist/components/base/LazyLayoutLoad/index.weapp.tsx +1 -1
  11. package/dist/components/base/LazyLoadImage/index.h5.module.scss +4 -8
  12. package/dist/components/base/LazyLoadImage/index.h5.tsx +1 -1
  13. package/dist/components/base/LazyLoadImage/index.tsx +1 -1
  14. package/dist/components/base/NetworkDataError/index.tsx +1 -1
  15. package/dist/components/debug/DebugLayout/index.module.scss +2 -2
  16. package/dist/components/decorate/PlaceHolder/index.tsx +1 -1
  17. package/dist/components/floorItem.jd.tsx +1 -1
  18. package/dist/components/floorItem.tsx +1 -1
  19. package/dist/components/floorItem.weapp.tsx +1 -1
  20. package/dist/interface/component.ts +1 -1
  21. package/dist/interface/jumpEventReport.ts +1 -1
  22. package/dist/jumpEventReport/logEventConfig.ts +1 -1
  23. package/dist/jumpEventReport/web.tjm.ts +1 -1
  24. package/dist/open/api/device.ts +1 -1
  25. package/dist/sass/app.h5.scss +0 -18
  26. package/dist/service/http/colorSign.ts +1 -1
  27. package/dist/service/requestServer.ts +1 -1
  28. package/dist/utils/connectNativeJsBridge.ts +1 -1
  29. package/dist/utils/index.h5.ts +1 -1
  30. package/dist/utils/taroRenderUtil.ts +1 -1
  31. package/dist/utils/utils.ts +1 -1
  32. package/package.json +53 -64
  33. package/dist/components/base/CustomScrollView/index-back.tsx +0 -1
  34. package/dist/utils/log.ts +0 -1
@@ -1 +1 @@
1
- import Taro, { useRouter } from '@tarojs/taro'
2
1
  isH5AndJdShopView,
3
2
  isH5AndJdShopViewH5Scroll,
4
3
  sgmCustomReport,
5
4
  getSgmCustomCode,
6
5
  SECTION_HOME_TAB_TYPE,
7
6
  SECTION_HOME_TAB_NAME_TYPE,
8
7
  TaroEventType,
9
8
  latestFromNativeMsgStorage,
10
9
  nativePageRegisterMessage,
11
10
  Message_Type,
12
11
  getNativePageScrollRes,
13
12
  const {
14
13
  sectionType = SECTION_HOME_TAB_NAME_TYPE[
15
14
  SECTION_HOME_TAB_TYPE.HOME_WELL_CHOSEN
16
15
  ],
17
16
  type = LazyType.FLOOR,
18
17
  children = null,
19
18
  placeholder = null,
20
19
  height = 200,
21
20
  className = '',
22
21
  lazyNodeClassName = '',
23
22
  containerId,
24
23
  floorData = {},
25
24
  } = props
26
25
  const getRouterInfo = useRouter()
27
26
  const getQueryData = getRouterInfo?.params || {}
28
27
  const [componentShowState, setComponentShowState] = useState(false)
29
28
  const [componentRenderShowState, setComponentRenderShowState] =
30
29
  useState(false)
31
30
  const componentLazyRef = useRef<HTMLElement | null>(null)
32
31
  const componentShowStateRef = useRef(false)
33
32
  const needShowHighVersion =
34
33
  isH5AndJdShopViewH5Scroll &&
35
34
  !(
36
35
  global.info.queryInfo?.downgraded &&
37
36
  global.info.queryInfo.downgraded === 'true'
38
37
  )
39
38
  const rootDom =
40
39
  isH5AndJdShopView && needShowHighVersion
41
40
  ? null
42
41
  : document.querySelector('#J_shopHomeRoot')
43
42
  const { ref, inView } = useInView({
44
43
  threshold: 0,
45
44
  triggerOnce: true,
46
45
  root: rootDom,
47
46
  rootMargin: `0px 0px ${window.innerHeight}px 0px`,
48
47
  })
49
48
  useEffect(() => {
50
49
  if (needShowHighVersion || !isH5AndJdShopView) return
51
50
  if (type === LazyType.FLOOR) {
52
51
  const latestRes =
53
52
  latestFromNativeMsgStorage[TaroEventType.PAGE_SCROLL] || {}
54
53
  !componentShowStateRef.current && dealPageScrollInfo(latestRes, false)
55
54
  Taro.eventCenter.on(TaroEventType.PAGE_SCROLL, (res) => {
56
55
  !componentShowStateRef.current && dealPageScrollInfo(res, true)
57
56
  })
58
57
  }
59
58
  }, [])
60
59
  useEffect(() => {
61
60
  if (
62
61
  (!needShowHighVersion && componentShowState === true) ||
63
62
  (needShowHighVersion && inView && isH5AndJdShopView)
64
63
  ) {
65
64
  console.log(
66
65
  '>>>>>>>>>>>>>>>>>>> 楼层【id=' + containerId + '】已经渲染!',
67
66
  )
68
67
  const modularPackResult = floorData?.floorExtInfo?.modularPackResult
69
68
  const modularPackResultObj =
70
69
  typeof modularPackResult === 'string'
71
70
  ? JSON.parse(modularPackResult)
72
71
  : modularPackResult
73
72
  if (modularPackResultObj && modularPackResultObj.bundleUrl) {
74
73
  const { bundleUrl } = modularPackResultObj
75
74
  nativePageRegisterMessage(Message_Type.NATIVE_INJECT_JS_FILE, {
76
75
  data: {
77
76
  bundleUrl: [bundleUrl],
78
77
  },
79
78
  })
80
79
  }
81
80
  }
82
81
  }, [componentShowState, inView])
83
82
 
84
83
  const dealPageScrollInfo = (res, pageScrollTrigger) => {
85
84
  const { displayHeight, offSetY } = getNativePageScrollRes(res) || {}
86
85
  if (
87
86
  typeof displayHeight === 'undefined' ||
88
87
  typeof offSetY === 'undefined'
89
88
  ) {
90
89
  const shopId = floorData?.floorExtInfo?.shopId
91
90
  if (!lazyLayoutLoadErrorShopId[`${shopId}`] && pageScrollTrigger) {
92
91
  const opt = {
93
92
  msg: `店铺楼层懒加载失败。楼层顺序-floorIdx: ${floorData?.floorIdx}。`,
94
93
  uid: floorData?.uid,
95
94
  floorIdx: floorData?.floorIdx,
96
95
  shopId: shopId,
97
96
  moduleId: floorData?.moduleId,
98
97
  moduleName: floorData?.moduleName,
99
98
  middleTemplateId: floorData?.middleTemplateId,
100
99
  }
101
100
  sgmCustomReport({
102
101
  code: getSgmCustomCode(SgmCustomCode.FLOORLAZYLOAD_DATA),
103
102
  msg: opt,
104
103
  })
105
104
  lazyLayoutLoadErrorShopId[`${shopId}`] = true
106
105
  }
107
106
  return
108
107
  }
109
108
  if (componentLazyRef.current) {
110
109
  const eleClientRect = componentLazyRef.current.getBoundingClientRect()
111
110
  const getContainerHeightOffSetY = displayHeight + offSetY
112
111
  const eleOffsetTop = Math.ceil(eleClientRect.top)
113
112
  const eleOffsetHeight = Math.ceil(eleClientRect.height)
114
113
  const eleOffsetTopHeight = eleOffsetTop + eleOffsetHeight
115
114
  if (!componentShowStateRef.current) {
116
115
  if (getContainerHeightOffSetY > eleOffsetTop) {
117
116
  componentShowStateRef.current = true
118
117
  setComponentShowState(true)
119
118
  Taro.nextTick(() => {
120
119
  setComponentRenderShowState(true)
121
120
  })
122
121
  }
123
122
  }
124
123
  }
125
124
  }
126
125
  return isH5AndJdShopView && !needShowHighVersion ? (
127
126
  <div
128
127
  id={`${containerId}_lazy`}
129
128
  ref={componentLazyRef}
130
129
  className={classNames(
131
130
  lazyLayoutLoadStyle['d-app-floor-lazy-layout-load'],
132
131
  'd-app-floor-lazy-load',
133
132
  )}
134
133
  style={{
135
134
  minHeight: `${componentRenderShowState ? 'auto' : height + 'px'}`,
136
135
  backgroundColor: componentRenderShowState ? 'transparent' : '#ffffff',
137
136
  }}
138
137
  >
139
138
  {componentShowState ? children : placeholder}
140
139
  </div>
141
140
  ) : (
142
141
  <div
143
142
  id={`${containerId}_lazy`}
144
143
  className={classNames(
145
144
  lazyLayoutLoadStyle['d-mobile-floor-lazy-layout-load'],
146
145
  'd-mobile-floor-lazy-load',
147
146
  lazyNodeClassName,
148
147
  )}
149
148
  ref={ref}
150
149
  style={{
151
150
  minHeight: `${inView ? 'auto' : height + 'px'}`,
152
151
  backgroundColor: inView ? 'transparent' : '#ffffff',
153
152
  }}
154
153
  >
155
154
  {inView ? children : placeholder}
156
155
  </div>
157
156
  )
157
+ import Taro, { useRouter } from '@tarojs/taro'
158
158
  SECTION_HOME_TAB_TYPE,
159
159
  SECTION_HOME_TAB_NAME_TYPE,
160
160
  TaroEventType,
161
161
  const {
162
162
  children,
163
163
  containerId,
164
164
  type,
165
165
  placeholder,
166
166
  height,
167
167
  floorData = {},
168
168
  sectionType,
169
169
  lazyNodeClassName,
170
170
  } = props
171
171
  const getRouterInfo = useRouter()
172
172
  const getQueryData = getRouterInfo?.params || {}
173
173
  const [componentShowState, setComponentShowState] = useState(false)
174
174
  const [componentRenderShowState, setComponentRenderShowState] =
175
175
  useState(false)
176
176
  const componentLazyRef = useRef<HTMLElement | null>(null)
177
177
  const componentShowStateRef = useRef(false)
178
178
  const needShowHighVersion = isH5AndJdShopViewH5Scroll && !(global.info.queryInfo?.downgraded && global.info.queryInfo.downgraded === "true")
179
179
  const rootDom = isH5AndJdShopView && needShowHighVersion ? null : document.querySelector('#J_shopHomeRoot')
180
180
  const { ref, inView } = useInView({
181
181
  threshold: 0,
182
182
  triggerOnce: true,
183
183
  root: rootDom,
184
184
  rootMargin: `0px 0px ${window.innerHeight}px 0px`,
185
185
  })
186
186
  useEffect(() => {
187
187
  if(needShowHighVersion || !isH5AndJdShopView) return
188
188
  if (type === LazyType.FLOOR) {
189
189
  const latestRes = latestFromNativeMsgStorage[TaroEventType.PAGE_SCROLL] || {}
190
190
  !componentShowStateRef.current && dealPageScrollInfo(latestRes,false)
191
191
  Taro.eventCenter.on(TaroEventType.PAGE_SCROLL, (res) => {
192
192
  !componentShowStateRef.current && dealPageScrollInfo(res,true)
193
193
  })
194
194
  }
195
195
  }, [])
196
196
  useEffect(() => {
197
197
  if((!needShowHighVersion && componentShowState === true) ||
198
198
  (needShowHighVersion && inView && isH5AndJdShopView)
199
199
  ) {
200
200
  console.log('>>>>>>>>>>>>>>>>>>> 楼层【id=' + containerId + '】已经渲染!')
201
201
  const modularPackResult = floorData?.floorExtInfo?.modularPackResult
202
202
  const modularPackResultObj = typeof modularPackResult === 'string' ? JSON.parse(modularPackResult) : modularPackResult
203
203
  if (modularPackResultObj && modularPackResultObj.bundleUrl) {
204
204
  const { bundleUrl } = modularPackResultObj
205
205
  nativePageRegisterMessage(
206
206
  Message_Type.NATIVE_INJECT_JS_FILE,
207
207
  {
208
208
  data: {
209
209
  "bundleUrl": [bundleUrl]
210
210
  },
211
211
  },
212
212
  )
213
213
  }
214
214
  }
215
215
  }, [componentShowState,inView])
216
216
 
217
217
  const dealPageScrollInfo = (res,pageScrollTrigger) => {
218
218
  const { displayHeight, offSetY } = getNativePageScrollRes(res) || {}
219
219
  if (typeof displayHeight === 'undefined' || typeof offSetY === 'undefined') {
220
220
  const shopId = floorData?.floorExtInfo?.shopId
221
221
  if(!lazyLayoutLoadErrorShopId[`${shopId}`] && pageScrollTrigger) {
222
222
  const opt = {
223
223
  msg: `店铺楼层懒加载失败。楼层顺序-floorIdx: ${floorData?.floorIdx}。`,
224
224
  uid: floorData?.uid,
225
225
  floorIdx: floorData?.floorIdx,
226
226
  shopId: shopId,
227
227
  moduleId: floorData?.moduleId,
228
228
  moduleName: floorData?.moduleName,
229
229
  middleTemplateId: floorData?.middleTemplateId
230
230
  }
231
231
  sgmCustomReport({
232
232
  code: getSgmCustomCode(SgmCustomCode.FLOORLAZYLOAD_DATA),
233
233
  msg: opt,
234
234
  })
235
235
  lazyLayoutLoadErrorShopId[`${shopId}`] = true
236
236
  }
237
237
  return
238
238
  }
239
239
  if (componentLazyRef.current) {
240
240
  const eleClientRect =
241
241
  componentLazyRef.current.getBoundingClientRect()
242
242
  const getContainerHeightOffSetY = displayHeight + offSetY
243
243
  const eleOffsetTop = Math.ceil(eleClientRect.top)
244
244
  const eleOffsetHeight = Math.ceil(eleClientRect.height)
245
245
  const eleOffsetTopHeight = eleOffsetTop + eleOffsetHeight
246
246
  if (!componentShowStateRef.current) {
247
247
  if (getContainerHeightOffSetY > eleOffsetTop) {
248
248
  componentShowStateRef.current = true
249
249
  setComponentShowState(true)
250
250
  Taro.nextTick(() => {
251
251
  setComponentRenderShowState(true)
252
252
  })
253
253
  }
254
254
  }
255
255
  }
256
256
  }
257
257
  return isH5AndJdShopView && !needShowHighVersion ? (
258
258
  <div
259
259
  id={`${containerId}_lazy`}
260
260
  ref={componentLazyRef}
261
261
  className={classNames(
262
262
  lazyLayoutLoadStyle['d-app-floor-lazy-layout-load'],
263
263
  'd-app-floor-lazy-load',
264
264
  )}
265
265
  style={{
266
266
  minHeight: `${
267
267
  componentRenderShowState ? 'auto' : height + 'px'
268
268
  }`,
269
269
  backgroundColor: componentRenderShowState
270
270
  ? 'transparent'
271
271
  : '#ffffff',
272
272
  }}
273
273
  >
274
274
  {componentShowState ? children : placeholder}
275
275
  </div>
276
276
  ) : (
277
277
  <div
278
278
  id={`${containerId}_lazy`}
279
279
  className={classNames(
280
280
  lazyLayoutLoadStyle['d-mobile-floor-lazy-layout-load'],
281
281
  'd-mobile-floor-lazy-load',
282
282
  lazyNodeClassName,
283
283
  )}
284
284
  ref={ref}
285
285
  style={{
286
286
  minHeight: `${inView ? 'auto' : height + 'px'}`,
287
287
  backgroundColor: inView ? 'transparent' : '#ffffff',
288
288
  }}
289
289
  >
290
290
  {}
291
291
  {inView ? children : placeholder}
292
292
  </div>
293
293
  )
294
294
  sectionType:
295
295
  SECTION_HOME_TAB_NAME_TYPE[SECTION_HOME_TAB_TYPE.HOME_WELL_CHOSEN],
296
296
  type: LazyType.FLOOR,
297
297
  children: null,
298
298
  placeholder: null,
299
299
  height: 200,
300
300
  className: '',
301
301
  lazyNodeClassName: '',
@@ -1 +1 @@
1
- import Taro from '@tarojs/taro'
2
1
  SECTION_HOME_TAB_TYPE,
3
2
  SECTION_HOME_TAB_NAME_TYPE,
4
3
  const {
5
4
  sectionType = SECTION_HOME_TAB_NAME_TYPE[
6
5
  SECTION_HOME_TAB_TYPE.HOME_WELL_CHOSEN
7
6
  ],
8
7
  type = LazyType.FLOOR,
9
8
  children = null,
10
9
  placeholder = null,
11
10
  height = 200,
12
11
  className = '',
13
12
  lazyNodeClassName = '',
14
13
  containerId,
15
14
  } = props
16
15
  const [componentShowState, setComponentShowState] = useState(false)
17
16
  const componentLazyRef = useRef<HTMLElement | null>(null)
18
17
  const lazyLayoutLoadFloor =
19
18
  'lazy-layout-load-floor' + Math.floor(Math.random() * 10000000)
20
19
  useEffect(() => {
21
20
  Taro.nextTick(() => {
22
21
  const createIntersectionObserver = new intersectionObserver({
23
22
  selector: `.${lazyLayoutLoadFloor}`,
24
23
  context: this,
25
24
  onFinal: () => {
26
25
  setComponentShowState(true)
27
26
  createIntersectionObserver.disconnect()
28
27
  },
29
28
  })
30
29
  createIntersectionObserver.connect()
31
30
  })
32
31
  }, [])
33
32
  return type === LazyType.IMAGE ? (
34
33
  children
35
34
  ) : (
36
35
  <View
37
36
  id={`${containerId}_lazy`}
38
37
  ref={componentLazyRef}
39
38
  className={classNames(
40
39
  lazyLayoutLoadStyle['d-app-floor-lazy-layout-load'],
41
40
  'd-app-floor-lazy-load',
42
41
  lazyLayoutLoadFloor,
43
42
  )}
44
43
  style={{
45
44
  minHeight: `${componentShowState ? 'auto' : height + 'px'}`,
46
45
  backgroundColor: componentShowState ? 'transparent' : '#ffffff',
47
46
  }}
48
47
  >
49
48
  {componentShowState ? children : placeholder}
50
49
  </View>
51
50
  )
51
+ import Taro from '@tarojs/taro'
52
52
  SECTION_HOME_TAB_TYPE,
53
53
  SECTION_HOME_TAB_NAME_TYPE,
54
54
  const {
55
55
  children,
56
56
  containerId,
57
57
  type,
58
58
  placeholder,
59
59
  height,
60
60
  sectionType,
61
61
  lazyNodeClassName,
62
62
  } = props
63
63
  const [componentShowState, setComponentShowState] = useState(false)
64
64
  const componentLazyRef = useRef<HTMLElement | null>(null)
65
65
  const lazyLayoutLoadFloor =
66
66
  'lazy-layout-load-floor' + Math.floor(Math.random() * 10000000)
67
67
  useEffect(() => {
68
68
  Taro.nextTick(() => {
69
69
  const createIntersectionObserver = new intersectionObserver({
70
70
  selector: `.${lazyLayoutLoadFloor}`,
71
71
  context: this,
72
72
  onFinal: () => {
73
73
  setComponentShowState(true)
74
74
  createIntersectionObserver.disconnect()
75
75
  },
76
76
  })
77
77
  createIntersectionObserver.connect()
78
78
  })
79
79
  }, [])
80
80
  return type === LazyType.IMAGE ? (
81
81
  children
82
82
  ) : (
83
83
  <View
84
84
  id={`${containerId}_lazy`}
85
85
  ref={componentLazyRef}
86
86
  className={classNames(
87
87
  lazyLayoutLoadStyle['d-app-floor-lazy-layout-load'],
88
88
  'd-app-floor-lazy-load',
89
89
  lazyLayoutLoadFloor,
90
90
  )}
91
91
  style={{
92
92
  minHeight: `${componentShowState ? 'auto' : height + 'px'}`,
93
93
  backgroundColor: componentShowState ? 'transparent' : '#ffffff',
94
94
  }}
95
95
  >
96
96
  {componentShowState ? children : placeholder}
97
97
  </View>
98
98
  )
99
99
  sectionType:
100
100
  SECTION_HOME_TAB_NAME_TYPE[SECTION_HOME_TAB_TYPE.HOME_WELL_CHOSEN],
101
101
  type: LazyType.FLOOR,
102
102
  children: null,
103
103
  placeholder: null,
104
104
  height: 200,
105
105
  className: '',
106
106
  lazyNodeClassName: '',
@@ -1,7 +1,6 @@
1
1
 
2
2
  .d-lazy-image,
3
3
  .d-app-lazy-image {
4
- font-size: 0;
5
4
  //background: #F8F8F8 url("../../resoure/jd_logo_bg.png") center center/50% no-repeat;
6
5
  background: #fff
7
6
  url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEsAAAAeCAMAAABT0xOcAAAAe1BMVEUAAADx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fELy0NOAAAAKHRSTlMApwmfFtYm9rWveHDm70yJHYJaD2k8IeIr6pY2X0HHfsGRZDHdu1XNmO+CqgAAAu9JREFUSMfNlNmymzAQRAchkCUhdrMZbLze/v8vjIRMKN8kRR7ykFNeVIPV9Ewj039P1TR8+eILjL7RdLFFJUO8QMS7ZmyDJvZ0nDYGY+aKKDSJpY3OwWX6uFUEY/peCNEbY4Rp6AABixFYkLQRAK3VOmAjUrawMt1GrfWtXD7rlFF3uiA6HV/p0TF1tBECEVskYe+7qqW08mqT1jruneu21/72JfHoSZ7faj2bJu6mOlgEa3qjEXKeL/ACV1s5YSbqYP6stXUeX2FZnV3wuBSZqnVWqDNCIvaFRzZIiGAIw+CS/1brQCslgOQdUBoW10C2EFJei7AkygOlAnmGeMprJq/NjhZpAIrepOpOte2Oq9EXjupIMVoiXduQ9rTo7KsODhxJYaAGuJPjgRvdkRD1KP9CawRwettyF5SbVLZ49ZbuMJxGW93XisXPKA/oXNMDEReJT6N0OfZ2V4RqX4tFQPbOQbntwrl8oXCOQmu2hVosSr6j5QcW+uvukZJP37CWzL7tQs2lH8B53Nd6eq192N/72mdfa52XhdXPx6zcXKYgikLXbaNP66M27edoAO2X+RkQ9tVRhoWC6IZkCZAbHHa1SgDHNdHDsbrLr0ojKTkfDWp6+WPh1APakMAXbVrb6B/Mn+311zlETJZOCJYChttWxedUIyvyi9bLt+J4IPcLvVYypBNaDG5TguCzmct3rUkAPSdHJRLyDEjXQ6Un3GZQBamxaU09gJg+/r+4gqV0uzixXjBfLnDzixrjhDJGNoDXXqvK76OEJaO3L1bx/FQOCSxqcfJVUWiXCydEPowHeIqaZnf3wmvNRsBiC28ttEnS+1oy+lNtOMVAzayZCwsQ5ESNREgvKKuNjjI/ewNHr9Y4N5Is98llx2U8iOQXcKczhDwAM6ObayaanfWDDwhJcMvpU8ucr6+cPji5a8+UEVMCMNo97tLm0MU2uoMmi850yrc8s8Khyzuj7+Q6U7GPMCt8mOtGljP6l/wAUcBZ6lceL/8AAAAASUVORK5CYII=')
@@ -13,17 +12,14 @@
13
12
  &.d-load-completed {
14
13
  background: none;
15
14
  }
16
- &.d-no-jd-dog {
17
- background-image: none;
18
- }
19
15
  // 暂时注释修复taro中Image组件已高度为准,宽度需要自适应的样式处理,需要调研和埋点上报看下有没有这种使用场景 20241122
20
16
  //&[mode="heightFix"] > img{
21
17
  // width: auto;
22
18
  //}
23
- // img {
24
- // display: block;
25
- // width: 100%;
26
- // }
19
+ img {
20
+ display: block;
21
+ width: 100%;
22
+ }
27
23
  &.d-hide-image-error {
28
24
  img {
29
25
  opacity: 0;