@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.
- package/dist/common/const.ts +1 -1
- package/dist/common/index.h5.ts +1 -1
- package/dist/common/jssdk.ts +1 -1
- package/dist/common/token/token.jd.ts +1 -1
- package/dist/components/base/CustomScrollView/index.tsx +1 -1
- package/dist/components/base/InOrOutViewObserver/index.tsx +1 -1
- package/dist/components/base/InViewRender/index.tsx +1 -1
- package/dist/components/base/InViewRender/index.weapp.tsx +1 -1
- package/dist/components/base/LazyLayoutLoad/index.tsx +1 -1
- package/dist/components/base/LazyLayoutLoad/index.weapp.tsx +1 -1
- package/dist/components/base/LazyLoadImage/index.h5.module.scss +4 -8
- package/dist/components/base/LazyLoadImage/index.h5.tsx +1 -1
- package/dist/components/base/LazyLoadImage/index.tsx +1 -1
- package/dist/components/base/NetworkDataError/index.tsx +1 -1
- package/dist/components/debug/DebugLayout/index.module.scss +2 -2
- package/dist/components/decorate/PlaceHolder/index.tsx +1 -1
- package/dist/components/floorItem.jd.tsx +1 -1
- package/dist/components/floorItem.tsx +1 -1
- package/dist/components/floorItem.weapp.tsx +1 -1
- package/dist/interface/component.ts +1 -1
- package/dist/interface/jumpEventReport.ts +1 -1
- package/dist/jumpEventReport/logEventConfig.ts +1 -1
- package/dist/jumpEventReport/web.tjm.ts +1 -1
- package/dist/open/api/device.ts +1 -1
- package/dist/sass/app.h5.scss +0 -18
- package/dist/service/http/colorSign.ts +1 -1
- package/dist/service/requestServer.ts +1 -1
- package/dist/utils/connectNativeJsBridge.ts +1 -1
- package/dist/utils/index.h5.ts +1 -1
- package/dist/utils/taroRenderUtil.ts +1 -1
- package/dist/utils/utils.ts +1 -1
- package/package.json +53 -64
- package/dist/components/base/CustomScrollView/index-back.tsx +0 -1
- package/dist/utils/log.ts +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
export enum TaroRenderVersion {
|
|
2
1
|
VERSION_OLD = 0,
|
|
3
2
|
VERSION_NEW = 1,
|
|
4
3
|
let result = modularPackResult?.bundleUrl || ''
|
|
5
4
|
if (window?.taroRenderVersion === TaroRenderVersion.VERSION_NEW) {
|
|
6
5
|
result = modularPackResult?.bundleUrlV2 || ''
|
|
7
6
|
}
|
|
8
7
|
return result
|
|
9
8
|
let result = modularPackResult?.bundleFileName || ''
|
|
10
9
|
if (window?.taroRenderVersion === TaroRenderVersion.VERSION_NEW) {
|
|
11
10
|
result = modularPackResult?.bundleFileNameV2 || ''
|
|
12
11
|
}
|
|
13
12
|
return result
|
|
14
13
|
let result = modularPackResult?.taroVersion || ''
|
|
15
14
|
if (window?.taroRenderVersion === TaroRenderVersion.VERSION_NEW) {
|
|
16
15
|
result = modularPackResult?.taroVersionV2 || ''
|
|
17
16
|
}
|
|
18
17
|
console.log(
|
|
19
18
|
'getTaroVersion taroRenderVersion:' +
|
|
20
19
|
window?.taroRenderVersion +
|
|
21
20
|
',taroVersion:' +
|
|
22
21
|
result,
|
|
23
22
|
)
|
|
24
23
|
return result
|
|
25
24
|
if (typeof modularPackResult === 'string') {
|
|
26
25
|
try {
|
|
27
26
|
return JSON.parse(modularPackResult)
|
|
28
27
|
} catch (e) {
|
|
29
28
|
console.error('JSON解析失败', e)
|
|
30
29
|
return {}
|
|
31
30
|
}
|
|
32
31
|
}
|
|
33
32
|
return modularPackResult || {}
|
|
33
|
+
export enum TaroRenderVersion {
|
|
34
34
|
VERSION_OLD = 0,
|
|
35
35
|
VERSION_NEW = 1,
|
|
36
36
|
let result = modularPackResult?.bundleUrl || ''
|
|
37
37
|
if (window?.taroRenderVersion === TaroRenderVersion.VERSION_NEW) {
|
|
38
38
|
result = modularPackResult?.bundleUrlV2 || ''
|
|
39
39
|
}
|
|
40
40
|
console.log(
|
|
41
41
|
'getBundleUrl taroRenderVersion:' +
|
|
42
42
|
window?.taroRenderVersion +
|
|
43
43
|
',bundleUrl:' +
|
|
44
44
|
result,
|
|
45
45
|
)
|
|
46
46
|
return result
|
|
47
47
|
let result = modularPackResult?.bundleFileName || ''
|
|
48
48
|
if (window?.taroRenderVersion === TaroRenderVersion.VERSION_NEW) {
|
|
49
49
|
result = modularPackResult?.bundleFileNameV2 || ''
|
|
50
50
|
}
|
|
51
51
|
console.log(
|
|
52
52
|
'getBundleUrl taroRenderVersion:' +
|
|
53
53
|
window?.taroRenderVersion +
|
|
54
54
|
',bundleFileName:' +
|
|
55
55
|
result,
|
|
56
56
|
)
|
|
57
57
|
return result
|
|
58
58
|
let result = modularPackResult?.taroVersion || ''
|
|
59
59
|
if (window?.taroRenderVersion === TaroRenderVersion.VERSION_NEW) {
|
|
60
60
|
result = modularPackResult?.taroVersionV2 || ''
|
|
61
61
|
}
|
|
62
62
|
console.log(
|
|
63
63
|
'getTaroVersion taroRenderVersion:' +
|
|
64
64
|
window?.taroRenderVersion +
|
|
65
65
|
',taroVersion:' +
|
|
66
66
|
result,
|
|
67
67
|
)
|
|
68
68
|
return result
|
|
69
69
|
if (typeof modularPackResult === 'string') {
|
|
70
70
|
try {
|
|
71
71
|
return JSON.parse(modularPackResult)
|
|
72
72
|
} catch (e) {
|
|
73
73
|
console.error('JSON解析失败', e)
|
|
74
74
|
return {}
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
return modularPackResult || {}
|