@conecli/cone-render 0.8.15-alpha.30 → 0.8.15-alpha.33

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.
@@ -52,6 +52,8 @@
52
52
  position: relative;
53
53
  top: 2px;
54
54
  padding-bottom: 2px;
55
+ // 文字titile行高不够被遮盖问题 比如“g”字母
56
+ line-height: 1.3;
55
57
  }
56
58
 
57
59
  .d-vertical-line {
@@ -1 +1 @@
1
- export const NetWorkTypeQuality = {
1
+ export const NetWorkTypeQuality = {
@@ -1 +1 @@
1
- import React, { useCallback, useEffect, useRef, useState } from 'react'
2
1
  const [componentShowState, setComponentShowState] = useState(false)
3
2
  const componentLazyRef = useRef<HTMLElement | null>(null)
4
3
  const componentShowStateRef = useRef(false)
5
4
  useEffect(() => {
6
5
  const latestRes = latestFromNativeMsgStorage[TaroEventType.PAGE_SCROLL] || {}
7
6
  !componentShowStateRef.current && dealPageScrollInfo(latestRes)
8
7
  Taro.eventCenter.on(TaroEventType.PAGE_SCROLL, (res) => {
9
8
  !componentShowStateRef.current && dealPageScrollInfo(res)
10
9
  })
11
10
 
12
11
 
13
12
  <View
14
13
  ref={componentLazyRef}
15
14
  className={classNames(
16
15
  imageStyle['d-app-lazy-image'],
17
16
  {
18
17
  [imageStyle['d-lazy-sku-image']]: isSkuImage,
19
18
  },
20
19
  {
21
20
  [imageStyle['d-hide-image-error']]: imageErrState,
22
21
  },
23
22
  {
24
23
  [imageStyle['d-load-completed']]: loadSuccess,
25
24
  },
26
25
  {
27
26
  'd-imag-rendering-crisp-edges':
28
27
  !taroJdBaseInfo.info.pageInfo.isVipShop &&
29
28
  imagRenderingSet,
30
29
  },
31
30
  'J_html5ImageBg',
32
31
  className,
33
32
  )}
34
33
  style={{
35
34
  ...style,
36
35
  ...changeStyleIncludeWidthAndHeightAndBgColor(),
37
36
  >
38
37
  {(componentShowState || lazyLoad === false) && <img
39
38
  src={getQualityImage(
40
39
  imgSrc,
41
40
  taroJdBaseInfo.info.pageInfo.isVipShop
42
41
  ? NetWorkTypeQuality['perfect']
43
42
  : NetWorkTypeQuality[getNetWorkType],
44
43
  )}
45
44
  onLoad={imageLoad.bind(this, imgSrc)}
46
45
  onError={imageError}
47
46
  />}
48
47
  </View>
49
48
  ) : (
50
49
  <Image
51
50
  style={{
52
51
  ...style,
53
52
  ...changeStyleIncludeWidthAndHeightAndBgColor(),
54
53
  }}
55
54
  className={classNames(
56
55
  imageStyle['d-lazy-image'],
57
56
  {
58
57
  [imageStyle['d-lazy-sku-image']]: isSkuImage,
59
58
  },
60
59
  {
61
60
  [imageStyle['d-hide-image-error']]: imageErrState,
62
61
  },
63
62
  {
64
63
  [imageStyle['d-load-completed']]: loadSuccess,
65
64
  },
66
65
  {
67
66
  'd-imag-rendering-crisp-edges': imagRenderingSet,
68
67
  },
69
68
  className,
70
69
  )}
71
70
  src={getQualityImage(
72
71
  imgSrc,
73
72
  NetWorkTypeQuality[getNetWorkType],
74
73
  )}
75
74
  lazyLoad={lazyLoad}
76
75
  onError={imageError}
77
76
  onLoad={imageLoad.bind(this, imgSrc)}
78
77
  {...otherOption}
79
78
  />
80
79
  )
80
+ import React, { useCallback, useEffect, useRef, useState } from 'react'
81
81
  const [componentShowState, setComponentShowState] = useState(false)
82
82
  const componentLazyRef = useRef<HTMLElement | null>(null)
83
83
  const componentShowStateRef = useRef(false)
84
84
  useEffect(() => {
85
85
  const latestRes = latestFromNativeMsgStorage[TaroEventType.PAGE_SCROLL] || {}
86
86
  !componentShowStateRef.current && dealPageScrollInfo(latestRes)
87
87
  Taro.eventCenter.on(TaroEventType.PAGE_SCROLL, (res) => {
88
88
  !componentShowStateRef.current && dealPageScrollInfo(res)
89
89
  })
90
90
 
91
91
  <View
92
92
  ref={componentLazyRef}
93
93
  className={classNames(
94
94
  imageStyle['d-app-lazy-image'],
95
95
  {
96
96
  [imageStyle['d-lazy-sku-image']]: isSkuImage,
97
97
  },
98
98
  {
99
99
  [imageStyle['d-hide-image-error']]: imageErrState,
100
100
  },
101
101
  {
102
102
  [imageStyle['d-load-completed']]: loadSuccess,
103
103
  },
104
104
  {
105
105
  'd-imag-rendering-crisp-edges':
106
106
  !taroJdBaseInfo.info.pageInfo.isVipShop &&
107
107
  imagRenderingSet,
108
108
  },
109
109
  'J_html5ImageBg',
110
110
  className,
111
111
  )}
112
112
  style={{
113
113
  ...style,
114
114
  ...changeStyleIncludeWidthAndHeightAndBgColor(),
115
115
  >
116
116
  {(componentShowState || lazyLoad === false) && <img
117
117
  src={getQualityImage(
118
118
  imgSrc,
119
119
  taroJdBaseInfo.info.pageInfo.isVipShop
120
120
  ? NetWorkTypeQuality['perfect']
121
121
  : NetWorkTypeQuality[getNetWorkType],
122
122
  )}
123
123
  onLoad={imageLoad.bind(this, imgSrc)}
124
124
  onError={imageError}
125
125
  />}
126
126
  </View>
127
127
  ) : (
128
128
  <Image
129
129
  style={{
130
130
  ...style,
131
131
  ...changeStyleIncludeWidthAndHeightAndBgColor(),
132
132
  }}
133
133
  className={classNames(
134
134
  imageStyle['d-lazy-image'],
135
135
  {
136
136
  [imageStyle['d-lazy-sku-image']]: isSkuImage,
137
137
  },
138
138
  {
139
139
  [imageStyle['d-hide-image-error']]: imageErrState,
140
140
  },
141
141
  {
142
142
  [imageStyle['d-load-completed']]: loadSuccess,
143
143
  },
144
144
  {
145
145
  'd-imag-rendering-crisp-edges': imagRenderingSet,
146
146
  },
147
147
  className,
148
148
  )}
149
149
  src={getQualityImage(
150
150
  imgSrc,
151
151
  NetWorkTypeQuality[getNetWorkType],
152
152
  )}
153
153
  lazyLoad={lazyLoad}
154
154
  onError={imageError}
155
155
  onLoad={imageLoad.bind(this, imgSrc)}
156
156
  {...otherOption}
157
157
  />
158
158
  )
@@ -1 +1 @@
1
- import { View } from '@tarojs/components'
1
+ import { View } from '@tarojs/components'
2
2
  selectContainerId,
3
3
  placeHolderPreContainerId,
4
4
  containerData,
5
5
  children,
6
6
  style,
7
7
  shopTotalInfo,
8
8
  } = props;
9
9
  return children ? children : null;
10
10
  }, [containerData, shopTotalInfo]);
@@ -1 +1 @@
1
- import React from 'react'
1
+ import React from 'react'
2
2
  containerIndex?: number
3
3
  containerData?: any
4
4
  shopTotalInfo?: any
5
5
  selectContainerFn?: Function
6
6
  selectContainerId?: string
7
7
  placeHolderPreContainerId?: string
8
8
  children?: any
9
9
  style?: {
10
10
  [key: string]: any
11
11
  };
12
12
  layoutLeftRightMargin?: number
13
13
  }
@@ -353,145 +353,6 @@ taro-radio-core {
353
353
  }
354
354
  }
355
355
 
356
- //
357
- //.Yep-mask {
358
- // position: fixed;
359
- // z-index: 222;
360
- // top: 0;
361
- // right: 0;
362
- // left: 0;
363
- // bottom: 0;
364
- // background: rgba(0, 0, 0, 0.65);
365
- // height: 100%;
366
- //}
367
- //
368
- //.Yep-mask_transparent {
369
- // position: fixed;
370
- // z-index: 222;
371
- // top: 0;
372
- // right: 0;
373
- // left: 0;
374
- // bottom: 0;
375
- // height: 100%;
376
- //}
377
- //
378
- //.Yep-popup {
379
- // position: fixed;
380
- // left: 0;
381
- // right: 0;
382
- // top: 0;
383
- // bottom: 0;
384
- // width: 100%;
385
- // z-index: 222;
386
- // overflow: auto;
387
- // outline: 0;
388
- //}
389
- //
390
- //.Yep-dialog {
391
- // position: relative;
392
- //
393
- // &-transparent {
394
- // width: 540px;
395
- // }
396
- //
397
- // &-content {
398
- // position: relative;
399
- // background-color: #ffffff;
400
- // border: 0;
401
- // text-align: center;
402
- // height: 100%;
403
- // overflow: hidden;
404
- // }
405
- //
406
- // &-transparent &-content {
407
- // border-radius: 18px;
408
- // padding-top: 30px;
409
- // }
410
- //
411
- // &-header {
412
- // padding: 12px 30px 30px;
413
- // }
414
- //
415
- // &-title {
416
- // margin: 0;
417
- // font-size: 36px;
418
- // line-height: 1;
419
- // color: #000;
420
- // text-align: center;
421
- // }
422
- //
423
- // &-body {
424
- // font-size: 32px;
425
- // color: #888;
426
- // height: 100%;
427
- // line-height: 1.5;
428
- // overflow: auto;
429
- // }
430
- //
431
- //
432
- // &-transparent &-content &-header + &-body {
433
- // padding: 0 30px 30px;
434
- // }
435
- //
436
- // &-transparent &-content &-body {
437
- // padding: 28px 30px 58px;
438
- // }
439
- //
440
- // &-wrap {
441
- // display: flex;
442
- // align-items: center;
443
- // justify-content: center;
444
- // position: fixed;
445
- // top: 0;
446
- // left: 0;
447
- // bottom: 0;
448
- // right: 0;
449
- // z-index: 222;
450
- // }
451
- //
452
- // &-button-group-h {
453
- // display: flex;
454
- // }
455
- //
456
- // &-button-group-h &-button {
457
- // position: relative;
458
- // flex: 1;
459
- // box-sizing: border-box;
460
- // text-align: center;
461
- // text-decoration: none;
462
- // outline: none;
463
- // background-color: #2a83e1;
464
- // color: #ffffff;
465
- // font-size: 36px;
466
- // height: 88px;
467
- // line-height: 88px;
468
- // display: block;
469
- // width: auto;
470
- // overflow: hidden;
471
- // text-overflow: ellipsis;
472
- // white-space: nowrap;
473
- //
474
- // &:after {
475
- // content: '';
476
- // display: block;
477
- // position: absolute;
478
- // width: 100%;
479
- // left: 0;
480
- // top: 0;
481
- // height: 1px;
482
- // background-color: #dadada;
483
- // -webkit-transform: scaleY(0.5);
484
- // transform: scaleY(0.5);
485
- // pointer-events: none;
486
- // }
487
- // }
488
- //
489
- // &-button:first-child {
490
- // background-color: #ffffff;
491
- // color: #000000;
492
- // }
493
- //}
494
-
495
356
  .fade-enter {
496
357
  opacity: 0.01;
497
358
  }
@@ -605,3 +466,10 @@ taro-radio-core {
605
466
  }
606
467
 
607
468
 
469
+ .d-imag-rendering-crisp-edges {
470
+ //image-rendering: -moz-crisp-edges;
471
+ //image-rendering: -o-crisp-edges;
472
+ //image-rendering: -webkit-optimize-contrast;
473
+ //image-rendering: crisp-edges;
474
+ //-ms-interpolation-mode: nearest-neighbor;
475
+ }
@@ -19,3 +19,11 @@ image {
19
19
  width: 100%;
20
20
  height: 100%;
21
21
  }
22
+
23
+ .d-imag-rendering-crisp-edges {
24
+ image-rendering: -moz-crisp-edges;
25
+ image-rendering: -o-crisp-edges;
26
+ image-rendering: -webkit-optimize-contrast;
27
+ image-rendering: crisp-edges;
28
+ -ms-interpolation-mode: nearest-neighbor;
29
+ }
@@ -340,12 +340,3 @@
340
340
  border: none;
341
341
  }
342
342
  }
343
-
344
-
345
- .d-imag-rendering-crisp-edges {
346
- image-rendering: -moz-crisp-edges;
347
- image-rendering: -o-crisp-edges;
348
- image-rendering: -webkit-optimize-contrast;
349
- image-rendering: crisp-edges;
350
- -ms-interpolation-mode: nearest-neighbor;
351
- }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@conecli/cone-render",
3
- "version": "0.8.15-alpha.30",
3
+ "version": "0.8.15-alpha.33",
4
4
  "private": false,
5
5
  "files": [
6
6
  "dist/"