@fonixtree/magic-design 1.0.156 → 1.0.158
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/es/common/ProductCardModal/index.js +4 -4
- package/es/composite-comp/dito/components/SearchDITO/pc/index.js +12 -9
- package/es/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.less +3 -2
- package/lib/common/ProductCardModal/index.js +4 -4
- package/lib/composite-comp/dito/components/SearchDITO/pc/index.js +12 -9
- package/lib/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.less +3 -2
- package/package.json +1 -1
|
@@ -62,7 +62,7 @@ function ProductCardModal(_a) {
|
|
|
62
62
|
return index === active;
|
|
63
63
|
};
|
|
64
64
|
|
|
65
|
-
var randomRotateY = function randomRotateY() {
|
|
65
|
+
var randomRotateY = function randomRotateY(index) {
|
|
66
66
|
// return Math.floor(Math.random() * 21) - 10;
|
|
67
67
|
return Math.floor((index % 2 === 0 ? -index : index) * 0.1 * 21) - 10;
|
|
68
68
|
};
|
|
@@ -128,7 +128,7 @@ function ProductCardModal(_a) {
|
|
|
128
128
|
opacity: isActive(index) ? 1 : 0.7,
|
|
129
129
|
scale: isActive(index) ? 1 : 0.95,
|
|
130
130
|
z: isActive(index) ? 0 : -100,
|
|
131
|
-
rotate: isActive(index) ? 0 : randomRotateY(),
|
|
131
|
+
rotate: isActive(index) ? 0 : randomRotateY(index),
|
|
132
132
|
zIndex: isActive(index) ? 999 : data.length + 2 - index,
|
|
133
133
|
y: isActive(index) ? [0, -80, 0] : 0
|
|
134
134
|
},
|
|
@@ -137,13 +137,13 @@ function ProductCardModal(_a) {
|
|
|
137
137
|
opacity: 0,
|
|
138
138
|
scale: 0.9,
|
|
139
139
|
z: 100,
|
|
140
|
-
rotate: randomRotateY()
|
|
140
|
+
rotate: randomRotateY(index)
|
|
141
141
|
},
|
|
142
142
|
initial: {
|
|
143
143
|
opacity: 0,
|
|
144
144
|
scale: 0.9,
|
|
145
145
|
z: -100,
|
|
146
|
-
rotate: randomRotateY()
|
|
146
|
+
rotate: randomRotateY(index)
|
|
147
147
|
},
|
|
148
148
|
transition: {
|
|
149
149
|
duration: 0.4,
|
|
@@ -524,15 +524,18 @@ function (_super) {
|
|
|
524
524
|
_this.bannerGoto(_this.props.data.groupSource);
|
|
525
525
|
});
|
|
526
526
|
var navCardDom = document.querySelector('.navigation');
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
527
|
+
|
|
528
|
+
if (navCardDom) {
|
|
529
|
+
document.addEventListener('click', function (event) {
|
|
530
|
+
if (!navCardDom.contains(event.target)) {
|
|
531
|
+
_this.setState({
|
|
532
|
+
activeCatgId: null,
|
|
533
|
+
visible: false,
|
|
534
|
+
relativeLeft: 0
|
|
535
|
+
});
|
|
536
|
+
}
|
|
537
|
+
});
|
|
538
|
+
}
|
|
536
539
|
};
|
|
537
540
|
|
|
538
541
|
SearchDitoPc.prototype.componentWillReceiveProps = function (nextProps) {
|
|
@@ -17,7 +17,8 @@
|
|
|
17
17
|
content: '';
|
|
18
18
|
display: block;
|
|
19
19
|
width: 180%;
|
|
20
|
-
|
|
20
|
+
max-width: 672px;
|
|
21
|
+
height: 840px;
|
|
21
22
|
position: absolute;
|
|
22
23
|
transform: translate(-50%, -50%) rotate(-45deg) scale(0);
|
|
23
24
|
top: 50%;
|
|
@@ -29,7 +30,7 @@
|
|
|
29
30
|
background-size: 100%;
|
|
30
31
|
background-repeat: no-repeat;
|
|
31
32
|
background-position: center;
|
|
32
|
-
transition: transform
|
|
33
|
+
transition: transform 0.7s linear;
|
|
33
34
|
pointer-events: none;
|
|
34
35
|
}
|
|
35
36
|
|
|
@@ -62,7 +62,7 @@ function ProductCardModal(_a) {
|
|
|
62
62
|
return index === active;
|
|
63
63
|
};
|
|
64
64
|
|
|
65
|
-
var randomRotateY = function randomRotateY() {
|
|
65
|
+
var randomRotateY = function randomRotateY(index) {
|
|
66
66
|
// return Math.floor(Math.random() * 21) - 10;
|
|
67
67
|
return Math.floor((index % 2 === 0 ? -index : index) * 0.1 * 21) - 10;
|
|
68
68
|
};
|
|
@@ -128,7 +128,7 @@ function ProductCardModal(_a) {
|
|
|
128
128
|
opacity: isActive(index) ? 1 : 0.7,
|
|
129
129
|
scale: isActive(index) ? 1 : 0.95,
|
|
130
130
|
z: isActive(index) ? 0 : -100,
|
|
131
|
-
rotate: isActive(index) ? 0 : randomRotateY(),
|
|
131
|
+
rotate: isActive(index) ? 0 : randomRotateY(index),
|
|
132
132
|
zIndex: isActive(index) ? 999 : data.length + 2 - index,
|
|
133
133
|
y: isActive(index) ? [0, -80, 0] : 0
|
|
134
134
|
},
|
|
@@ -137,13 +137,13 @@ function ProductCardModal(_a) {
|
|
|
137
137
|
opacity: 0,
|
|
138
138
|
scale: 0.9,
|
|
139
139
|
z: 100,
|
|
140
|
-
rotate: randomRotateY()
|
|
140
|
+
rotate: randomRotateY(index)
|
|
141
141
|
},
|
|
142
142
|
initial: {
|
|
143
143
|
opacity: 0,
|
|
144
144
|
scale: 0.9,
|
|
145
145
|
z: -100,
|
|
146
|
-
rotate: randomRotateY()
|
|
146
|
+
rotate: randomRotateY(index)
|
|
147
147
|
},
|
|
148
148
|
transition: {
|
|
149
149
|
duration: 0.4,
|
|
@@ -524,15 +524,18 @@ function (_super) {
|
|
|
524
524
|
_this.bannerGoto(_this.props.data.groupSource);
|
|
525
525
|
});
|
|
526
526
|
var navCardDom = document.querySelector('.navigation');
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
527
|
+
|
|
528
|
+
if (navCardDom) {
|
|
529
|
+
document.addEventListener('click', function (event) {
|
|
530
|
+
if (!navCardDom.contains(event.target)) {
|
|
531
|
+
_this.setState({
|
|
532
|
+
activeCatgId: null,
|
|
533
|
+
visible: false,
|
|
534
|
+
relativeLeft: 0
|
|
535
|
+
});
|
|
536
|
+
}
|
|
537
|
+
});
|
|
538
|
+
}
|
|
536
539
|
};
|
|
537
540
|
|
|
538
541
|
SearchDitoPc.prototype.componentWillReceiveProps = function (nextProps) {
|
|
@@ -17,7 +17,8 @@
|
|
|
17
17
|
content: '';
|
|
18
18
|
display: block;
|
|
19
19
|
width: 180%;
|
|
20
|
-
|
|
20
|
+
max-width: 672px;
|
|
21
|
+
height: 840px;
|
|
21
22
|
position: absolute;
|
|
22
23
|
transform: translate(-50%, -50%) rotate(-45deg) scale(0);
|
|
23
24
|
top: 50%;
|
|
@@ -29,7 +30,7 @@
|
|
|
29
30
|
background-size: 100%;
|
|
30
31
|
background-repeat: no-repeat;
|
|
31
32
|
background-position: center;
|
|
32
|
-
transition: transform
|
|
33
|
+
transition: transform 0.7s linear;
|
|
33
34
|
pointer-events: none;
|
|
34
35
|
}
|
|
35
36
|
|