@conecli/cone-render 0.10.1-shop3.12 → 0.10.1-shop3.121
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/README.md +1 -1
- package/dist/api/index.ts +1 -1
- package/dist/common/accessibility.h5.ts +1 -0
- package/dist/common/accessibility.ts +1 -0
- package/dist/common/const.ts +1 -1
- package/dist/common/index.h5.ts +1 -1
- package/dist/common/index.jd.ts +1 -1
- package/dist/common/index.ts +1 -1
- package/dist/common/index.weapp.ts +1 -1
- package/dist/common/jdplayerSdk.weapp.tsx +1 -0
- package/dist/common/jssdk.ts +1 -1
- package/dist/common/jssdk.weapp.ts +1 -0
- package/dist/common/pageType.ts +1 -1
- package/dist/common/token/index.h5.ts +1 -1
- package/dist/common/token/token.jd.ts +1 -1
- package/dist/common/wxappApi.ascf.ts +1 -0
- package/dist/common/wxappApi.ts +1 -1
- package/dist/components/ErrorBoundary.tsx +1 -1
- package/dist/components/base/CommonFloorHead/index.tsx +1 -1
- package/dist/components/base/CountDown/index.tsx +1 -1
- package/dist/components/base/CountDownForApp/index.module.scss +52 -0
- package/dist/components/base/CountDownForApp/index.tsx +1 -0
- package/dist/components/base/CustomScrollView/index.tsx +1 -1
- package/dist/components/base/CustomVideo/index.tsx +1 -1
- package/dist/components/base/CustomVideo/index.weapp.tsx +1 -0
- package/dist/components/base/ExposureSmart/index.h5.tsx +1 -1
- package/dist/components/base/ExposureSmart/index.tsx +1 -1
- package/dist/components/base/ExposureSmart/reporter.tsx +1 -1
- package/dist/components/base/InOrOutViewObserver/index.weapp.tsx +1 -0
- package/dist/components/base/InViewRender/index.tsx +1 -1
- package/dist/components/base/LazyLayoutLoad/index.module.scss +9 -9
- package/dist/components/base/LazyLayoutLoad/index.tsx +1 -1
- package/dist/components/base/LazyLoadImage/index.h5.tsx +1 -1
- package/dist/components/base/MobileCommonHeader/index.tsx +1 -1
- package/dist/components/base/MobileCommonHeader/index.weapp.tsx +1 -0
- package/dist/components/base/NetworkDataError/const.ts +1 -1
- package/dist/components/base/NetworkDataError/index.module.scss +118 -72
- package/dist/components/base/NetworkDataError/index.tsx +1 -1
- package/dist/components/base/Price/Base/index.module.scss +12 -0
- package/dist/components/base/Price/Base/index.tsx +1 -1
- package/dist/components/base/Price/Double/index.module.scss +25 -1
- package/dist/components/base/Price/Double/index.tsx +1 -1
- package/dist/components/base/ShopLeGaoTag/index.h5.module.scss +35 -0
- package/dist/components/base/ShopLeGaoTag/index.h5.tsx +1 -0
- package/dist/components/base/ShopLeGaoTag/index.module.scss +33 -0
- package/dist/components/base/ShopLeGaoTag/index.tsx +1 -0
- package/dist/components/debug/DebugLayout/index.module.scss +2 -2
- package/dist/components/floorItem.tsx +1 -1
- package/dist/components/isv/Floor/index.tsx +1 -1
- package/dist/components/remoteFloorItem.tsx +1 -1
- package/dist/config/env.ts +1 -1
- package/dist/interface/common.ts +1 -1
- package/dist/interface/component.ts +1 -1
- package/dist/interface/jumpEventReport.ts +1 -1
- package/dist/interface/service.ts +1 -1
- package/dist/jumpEventReport/base.ts +1 -1
- package/dist/jumpEventReport/const.ts +1 -1
- package/dist/jumpEventReport/createReportFloorData.ts +1 -1
- package/dist/jumpEventReport/index.h5.ts +1 -1
- package/dist/jumpEventReport/index.jd.ts +1 -1
- package/dist/jumpEventReport/index.weapp.ts +1 -1
- package/dist/jumpEventReport/jdJumpJdApp.ts +1 -1
- package/dist/jumpEventReport/jumpUrlConfig/base.ts +1 -1
- package/dist/jumpEventReport/logEventConfig.h5.ts +1 -0
- package/dist/jumpEventReport/logEventConfig.ts +1 -1
- package/dist/jumpEventReport/web/report.ts +1 -1
- package/dist/jumpEventReport/web.base.ts +1 -1
- package/dist/jumpEventReport/web.jd.ts +1 -1
- package/dist/jumpEventReport/web.pc.ts +1 -1
- package/dist/jumpEventReport/web.tjm.ts +1 -1
- package/dist/jumpEventReport/web.wxapp.ts +1 -1
- package/dist/language/en_US.json +397 -0
- package/dist/language/zh_CN.json +397 -0
- package/dist/language/zh_HK.json +397 -0
- package/dist/libs/openShopBridge.js +161 -0
- package/dist/libs/openShopBridge.min.js +1 -0
- package/dist/libs/taroAppReport.js +2 -2
- package/dist/modules/ContainerFloorList/index.h5.module.scss +16 -2
- package/dist/modules/ContainerFloorList/index.h5.tsx +1 -1
- package/dist/modules/ContainerFloorList/index.tsx +1 -1
- package/dist/modules/DecorateContainerFloorList/index.weapp.tsx +1 -0
- package/dist/open/api/environment.ts +1 -1
- package/dist/open/api/shopMember.ts +1 -1
- package/dist/open/api/shopMember.weapp.ts +1 -0
- package/dist/open/api/track.ts +1 -1
- package/dist/open/api/util.ts +1 -1
- package/dist/open/components/index.ts +1 -1
- package/dist/open/index.ts +1 -1
- package/dist/sass/app.h5.scss +19 -2
- package/dist/sass/base.scss +8 -4
- package/dist/service/fetchGateway.ts +1 -1
- package/dist/service/fetchGateway.weapp.ts +1 -1
- package/dist/service/fetchJsonp.weapp.ts +1 -0
- package/dist/service/http/const.ts +1 -1
- package/dist/service/http/h5Http.ts +1 -1
- package/dist/service/http/httpInterceptors.weapp.ts +1 -0
- package/dist/service/requestServer.h5.ts +1 -1
- package/dist/service/requestServer.ts +1 -1
- package/dist/service/requestServer.weapp.ts +1 -1
- package/dist/utils/connectNativeJsBridge.ts +1 -1
- package/dist/utils/h5Utils.ts +1 -1
- package/dist/utils/harmonyCallRouter.h5.ts +1 -0
- package/dist/utils/harmonyCallRouter.ts +0 -0
- package/dist/utils/index.h5.ts +1 -1
- package/dist/utils/index.ts +1 -1
- package/dist/utils/index.weapp.ts +1 -1
- package/dist/utils/jumpExtMapUtil.ts +1 -0
- package/dist/utils/jumpExtMapUtil.weapp.ts +1 -0
- package/dist/utils/log.ts +1 -0
- package/dist/utils/{sColor.js → sColor.ts} +1 -1
- package/dist/utils/sColor.weapp.ts +1 -0
- package/dist/utils/utils.ts +1 -1
- package/dist/wxapp/common/address_api/address_api_v2.js +1 -0
- package/dist/wxapp/common/user_info.js +1 -1
- package/package.json +166 -141
- package/dist/jumpEventReport/web/wqshop.report.ts +0 -1
- package/dist/utils/priceUtils.js +0 -1
- /package/dist/utils/{jumpExtMapUtil.js → jumpExtMapUtil.h5.ts} +0 -0
|
@@ -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 from '@tarojs/taro';
|
|
158
158
|
isH5AndJdShopView,
|
|
159
159
|
isH5AndJdShopViewH5Scroll,
|
|
160
160
|
getSgmCustomCode,
|
|
161
161
|
draBusinessCustomReport,
|
|
162
162
|
SECTION_HOME_TAB_TYPE,
|
|
163
163
|
SECTION_HOME_TAB_NAME_TYPE,
|
|
164
164
|
TaroEventType,
|
|
165
165
|
latestFromNativeMsgStorage,
|
|
166
166
|
nativePageRegisterMessage,
|
|
167
167
|
Message_Type,
|
|
168
168
|
getNativePageScrollRes,
|
|
169
169
|
const {
|
|
170
170
|
sectionType = SECTION_HOME_TAB_NAME_TYPE[SECTION_HOME_TAB_TYPE.HOME_WELL_CHOSEN],
|
|
171
171
|
type = LazyType.FLOOR,
|
|
172
172
|
children = null,
|
|
173
173
|
placeholder = null,
|
|
174
174
|
height = 200,
|
|
175
175
|
className = '',
|
|
176
176
|
lazyNodeClassName = '',
|
|
177
177
|
containerId,
|
|
178
178
|
floorData = {},
|
|
179
179
|
rootMargin = `0px 0px ${window.innerHeight}px 0px`,
|
|
180
180
|
} = props;
|
|
181
181
|
const [componentShowState, setComponentShowState] = useState(false);
|
|
182
182
|
const [componentRenderShowState, setComponentRenderShowState] = useState(false);
|
|
183
183
|
const componentLazyRef = useRef<HTMLElement | null>(null);
|
|
184
184
|
const componentShowStateRef = useRef(false);
|
|
185
185
|
const needShowHighVersion =
|
|
186
186
|
isH5AndJdShopViewH5Scroll &&
|
|
187
187
|
!(global.info.queryInfo?.downgraded && global.info.queryInfo.downgraded === 'true');
|
|
188
188
|
const rootDom =
|
|
189
189
|
isH5AndJdShopView && needShowHighVersion ? null : document.querySelector('#J_shopHomeRoot');
|
|
190
190
|
const { ref, inView } = useInView({
|
|
191
191
|
threshold: 0,
|
|
192
192
|
triggerOnce: true,
|
|
193
193
|
root: rootDom,
|
|
194
194
|
rootMargin,
|
|
195
195
|
});
|
|
196
196
|
useEffect(() => {
|
|
197
197
|
if (needShowHighVersion || !isH5AndJdShopView) return;
|
|
198
198
|
if (type === LazyType.FLOOR) {
|
|
199
199
|
const latestRes = latestFromNativeMsgStorage[TaroEventType.PAGE_SCROLL] || {};
|
|
200
200
|
!componentShowStateRef.current && dealPageScrollInfo(latestRes, false);
|
|
201
201
|
Taro.eventCenter.on(TaroEventType.PAGE_SCROLL, (res) => {
|
|
202
202
|
!componentShowStateRef.current && dealPageScrollInfo(res, true);
|
|
203
203
|
});
|
|
204
204
|
}
|
|
205
205
|
}, []);
|
|
206
206
|
useEffect(() => {
|
|
207
207
|
if (
|
|
208
208
|
(!needShowHighVersion && componentShowState === true) ||
|
|
209
209
|
(needShowHighVersion && inView && isH5AndJdShopView)
|
|
210
210
|
) {
|
|
211
211
|
console.log('>>>>>>>>>>>>>>>>>>> 楼层【id=' + containerId + '】已经渲染!');
|
|
212
212
|
const modularPackResult = floorData?.floorExtInfo?.modularPackResult;
|
|
213
213
|
const modularPackResultObj =
|
|
214
214
|
typeof modularPackResult === 'string' ? JSON.parse(modularPackResult) : modularPackResult;
|
|
215
215
|
if (modularPackResultObj) {
|
|
216
216
|
const url =
|
|
217
217
|
window?.taroRenderVersion === 0
|
|
218
218
|
? modularPackResultObj.bundleUrl
|
|
219
219
|
: modularPackResultObj.bundleUrlV2;
|
|
220
220
|
if (url) {
|
|
221
221
|
nativePageRegisterMessage(Message_Type.NATIVE_INJECT_JS_FILE, {
|
|
222
222
|
data: {
|
|
223
223
|
bundleUrl: [url],
|
|
224
224
|
},
|
|
225
225
|
});
|
|
226
226
|
}
|
|
227
227
|
}
|
|
228
228
|
}
|
|
229
229
|
}, [componentShowState, inView]);
|
|
230
230
|
|
|
231
231
|
const dealPageScrollInfo = (res, pageScrollTrigger) => {
|
|
232
232
|
const { displayHeight, offSetY } = getNativePageScrollRes(res) || {};
|
|
233
233
|
if (typeof displayHeight === 'undefined' || typeof offSetY === 'undefined') {
|
|
234
234
|
const shopId = floorData?.floorExtInfo?.shopId;
|
|
235
235
|
if (!lazyLayoutLoadErrorShopId[`${shopId}`] && pageScrollTrigger) {
|
|
236
236
|
const opt = {
|
|
237
237
|
msg: `店铺楼层懒加载失败。楼层顺序-floorIdx: ${floorData?.floorIdx}。`,
|
|
238
238
|
uid: floorData?.uid,
|
|
239
239
|
floorIdx: floorData?.floorIdx,
|
|
240
240
|
shopId: shopId,
|
|
241
241
|
moduleId: floorData?.moduleId,
|
|
242
242
|
moduleName: floorData?.moduleName,
|
|
243
243
|
middleTemplateId: floorData?.middleTemplateId,
|
|
244
244
|
};
|
|
245
245
|
draBusinessCustomReport({
|
|
246
246
|
eventName: 'business',
|
|
247
247
|
errorName: getSgmCustomCode(SgmCustomCode.FLOORLAZYLOAD_DATA),
|
|
248
248
|
errorMessage: `店铺楼层懒加载失败。楼层顺序-floorIdx: ${floorData?.floorIdx}。`,
|
|
249
249
|
extraData: JSON.stringify(opt),
|
|
250
250
|
});
|
|
251
251
|
lazyLayoutLoadErrorShopId[`${shopId}`] = true;
|
|
252
252
|
}
|
|
253
253
|
return;
|
|
254
254
|
}
|
|
255
255
|
if (componentLazyRef.current) {
|
|
256
256
|
const eleClientRect = componentLazyRef.current.getBoundingClientRect();
|
|
257
257
|
const getContainerHeightOffSetY = displayHeight + offSetY;
|
|
258
258
|
const eleOffsetTop = Math.ceil(eleClientRect.top);
|
|
259
259
|
const eleOffsetHeight = Math.ceil(eleClientRect.height);
|
|
260
260
|
const eleOffsetTopHeight = eleOffsetTop + eleOffsetHeight;
|
|
261
261
|
if (!componentShowStateRef.current) {
|
|
262
262
|
if (getContainerHeightOffSetY > eleOffsetTop) {
|
|
263
263
|
componentShowStateRef.current = true;
|
|
264
264
|
setComponentShowState(true);
|
|
265
265
|
Taro.nextTick(() => {
|
|
266
266
|
setComponentRenderShowState(true);
|
|
267
267
|
});
|
|
268
268
|
}
|
|
269
269
|
}
|
|
270
270
|
}
|
|
271
271
|
};
|
|
272
272
|
return isH5AndJdShopView && !needShowHighVersion ? (
|
|
273
273
|
<div
|
|
274
274
|
id={`${containerId}_lazy`}
|
|
275
275
|
ref={componentLazyRef}
|
|
276
276
|
className={classNames(
|
|
277
277
|
lazyLayoutLoadStyle['d-app-floor-lazy-layout-load'],
|
|
278
278
|
'd-app-floor-lazy-load',
|
|
279
279
|
)}
|
|
280
280
|
style={{
|
|
281
281
|
minHeight: `${componentRenderShowState ? 'auto' : height + 'px'}`,
|
|
282
282
|
backgroundColor: componentRenderShowState ? 'transparent' : '#ffffff',
|
|
283
283
|
}}
|
|
284
284
|
>
|
|
285
285
|
{componentShowState ? children : placeholder}
|
|
286
286
|
</div>
|
|
287
287
|
) : (
|
|
288
288
|
<div
|
|
289
289
|
id={`${containerId}_lazy`}
|
|
290
290
|
className={classNames(
|
|
291
291
|
lazyLayoutLoadStyle['d-mobile-floor-lazy-layout-load'],
|
|
292
292
|
'd-mobile-floor-lazy-load',
|
|
293
293
|
lazyNodeClassName,
|
|
294
294
|
)}
|
|
295
295
|
ref={ref}
|
|
296
296
|
style={{
|
|
297
297
|
minHeight: `${inView ? 'auto' : height + 'px'}`,
|
|
298
298
|
backgroundColor: inView ? 'transparent' : '#ffffff',
|
|
299
299
|
}}
|
|
300
300
|
>
|
|
301
301
|
{inView ? children : placeholder}
|
|
302
302
|
</div>
|
|
303
303
|
);
|