@fonixtree/magic-design 1.0.170 → 1.0.171
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/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.js +16 -16
- package/es/composite-comp/dito/components/SlideImage/pc/index.js +1 -1
- package/lib/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.js +16 -16
- package/lib/composite-comp/dito/components/SlideImage/pc/index.js +1 -1
- package/package.json +1 -1
|
@@ -118,16 +118,16 @@ function (_super) {
|
|
|
118
118
|
};
|
|
119
119
|
|
|
120
120
|
VideoItem.prototype.render = function () {
|
|
121
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
122
|
-
|
|
123
|
-
var
|
|
124
|
-
data =
|
|
125
|
-
cursor =
|
|
126
|
-
onLoad =
|
|
127
|
-
moveIcon =
|
|
128
|
-
var
|
|
129
|
-
playing =
|
|
130
|
-
videoPoster =
|
|
121
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
122
|
+
|
|
123
|
+
var _j = this.props,
|
|
124
|
+
data = _j.data,
|
|
125
|
+
cursor = _j.cursor,
|
|
126
|
+
onLoad = _j.onLoad,
|
|
127
|
+
moveIcon = _j.moveIcon;
|
|
128
|
+
var _k = this.state,
|
|
129
|
+
playing = _k.playing,
|
|
130
|
+
videoPoster = _k.videoPoster;
|
|
131
131
|
var img = ((_b = (_a = data.overilay) === null || _a === void 0 ? void 0 : _a.content) === null || _b === void 0 ? void 0 : _b.pcImgSrc) || videoPoster;
|
|
132
132
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
133
133
|
ref: this.cardRef,
|
|
@@ -135,9 +135,9 @@ function (_super) {
|
|
|
135
135
|
onMouseEnter: this.onMouseEnter,
|
|
136
136
|
onMouseLeave: this.onMouseLeave,
|
|
137
137
|
style: {
|
|
138
|
-
cursor: cursor && moveIcon.open ? "url('" + moveIcon.content.pcImgSrc + "'), pointer" : 'unset'
|
|
138
|
+
cursor: cursor && (moveIcon === null || moveIcon === void 0 ? void 0 : moveIcon.open) ? "url('" + ((_c = moveIcon === null || moveIcon === void 0 ? void 0 : moveIcon.content) === null || _c === void 0 ? void 0 : _c.pcImgSrc) + "'), pointer" : 'unset'
|
|
139
139
|
}
|
|
140
|
-
}, ((
|
|
140
|
+
}, ((_d = data.video) === null || _d === void 0 ? void 0 : _d.sourceUrl) && /*#__PURE__*/_react["default"].createElement("video", {
|
|
141
141
|
ref: this.videoRef,
|
|
142
142
|
loop: true,
|
|
143
143
|
muted: true,
|
|
@@ -146,12 +146,12 @@ function (_super) {
|
|
|
146
146
|
visibility: playing ? 'visible' : 'hidden'
|
|
147
147
|
}
|
|
148
148
|
}, /*#__PURE__*/_react["default"].createElement("source", {
|
|
149
|
-
src: (
|
|
149
|
+
src: (_e = data.video) === null || _e === void 0 ? void 0 : _e.sourceUrl,
|
|
150
150
|
type: "video/mp4"
|
|
151
|
-
})), ((
|
|
151
|
+
})), ((_f = data.overilay) === null || _f === void 0 ? void 0 : _f.open) && img && /*#__PURE__*/_react["default"].createElement("img", {
|
|
152
152
|
alt: "",
|
|
153
153
|
className: (0, _classnames["default"])('video-img', {
|
|
154
|
-
cover: (
|
|
154
|
+
cover: (_g = data.video) === null || _g === void 0 ? void 0 : _g.sourceUrl
|
|
155
155
|
}),
|
|
156
156
|
onLoad: onLoad,
|
|
157
157
|
src: img,
|
|
@@ -160,7 +160,7 @@ function (_super) {
|
|
|
160
160
|
}
|
|
161
161
|
}), /*#__PURE__*/_react["default"].createElement("canvas", {
|
|
162
162
|
ref: this.canvasRef
|
|
163
|
-
}), ((
|
|
163
|
+
}), ((_h = data.background) === null || _h === void 0 ? void 0 : _h.image) && /*#__PURE__*/_react["default"].createElement("div", {
|
|
164
164
|
className: "hover-image",
|
|
165
165
|
style: {
|
|
166
166
|
backgroundImage: "url('" + data.background.image + "')"
|
|
@@ -59,7 +59,7 @@ function (_super) {
|
|
|
59
59
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
60
60
|
className: "m-slide-image-pc"
|
|
61
61
|
}, /*#__PURE__*/_react["default"].createElement(_ParallaxScroll["default"], {
|
|
62
|
-
moveIcon: content.moveIcon,
|
|
62
|
+
moveIcon: content === null || content === void 0 ? void 0 : content.moveIcon,
|
|
63
63
|
source: groupSource,
|
|
64
64
|
xGap: columnSpace,
|
|
65
65
|
yGap: lineSpace
|
|
@@ -118,16 +118,16 @@ function (_super) {
|
|
|
118
118
|
};
|
|
119
119
|
|
|
120
120
|
VideoItem.prototype.render = function () {
|
|
121
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
122
|
-
|
|
123
|
-
var
|
|
124
|
-
data =
|
|
125
|
-
cursor =
|
|
126
|
-
onLoad =
|
|
127
|
-
moveIcon =
|
|
128
|
-
var
|
|
129
|
-
playing =
|
|
130
|
-
videoPoster =
|
|
121
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
122
|
+
|
|
123
|
+
var _j = this.props,
|
|
124
|
+
data = _j.data,
|
|
125
|
+
cursor = _j.cursor,
|
|
126
|
+
onLoad = _j.onLoad,
|
|
127
|
+
moveIcon = _j.moveIcon;
|
|
128
|
+
var _k = this.state,
|
|
129
|
+
playing = _k.playing,
|
|
130
|
+
videoPoster = _k.videoPoster;
|
|
131
131
|
var img = ((_b = (_a = data.overilay) === null || _a === void 0 ? void 0 : _a.content) === null || _b === void 0 ? void 0 : _b.pcImgSrc) || videoPoster;
|
|
132
132
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
133
133
|
ref: this.cardRef,
|
|
@@ -135,9 +135,9 @@ function (_super) {
|
|
|
135
135
|
onMouseEnter: this.onMouseEnter,
|
|
136
136
|
onMouseLeave: this.onMouseLeave,
|
|
137
137
|
style: {
|
|
138
|
-
cursor: cursor && moveIcon.open ? "url('" + moveIcon.content.pcImgSrc + "'), pointer" : 'unset'
|
|
138
|
+
cursor: cursor && (moveIcon === null || moveIcon === void 0 ? void 0 : moveIcon.open) ? "url('" + ((_c = moveIcon === null || moveIcon === void 0 ? void 0 : moveIcon.content) === null || _c === void 0 ? void 0 : _c.pcImgSrc) + "'), pointer" : 'unset'
|
|
139
139
|
}
|
|
140
|
-
}, ((
|
|
140
|
+
}, ((_d = data.video) === null || _d === void 0 ? void 0 : _d.sourceUrl) && /*#__PURE__*/_react["default"].createElement("video", {
|
|
141
141
|
ref: this.videoRef,
|
|
142
142
|
loop: true,
|
|
143
143
|
muted: true,
|
|
@@ -146,12 +146,12 @@ function (_super) {
|
|
|
146
146
|
visibility: playing ? 'visible' : 'hidden'
|
|
147
147
|
}
|
|
148
148
|
}, /*#__PURE__*/_react["default"].createElement("source", {
|
|
149
|
-
src: (
|
|
149
|
+
src: (_e = data.video) === null || _e === void 0 ? void 0 : _e.sourceUrl,
|
|
150
150
|
type: "video/mp4"
|
|
151
|
-
})), ((
|
|
151
|
+
})), ((_f = data.overilay) === null || _f === void 0 ? void 0 : _f.open) && img && /*#__PURE__*/_react["default"].createElement("img", {
|
|
152
152
|
alt: "",
|
|
153
153
|
className: (0, _classnames["default"])('video-img', {
|
|
154
|
-
cover: (
|
|
154
|
+
cover: (_g = data.video) === null || _g === void 0 ? void 0 : _g.sourceUrl
|
|
155
155
|
}),
|
|
156
156
|
onLoad: onLoad,
|
|
157
157
|
src: img,
|
|
@@ -160,7 +160,7 @@ function (_super) {
|
|
|
160
160
|
}
|
|
161
161
|
}), /*#__PURE__*/_react["default"].createElement("canvas", {
|
|
162
162
|
ref: this.canvasRef
|
|
163
|
-
}), ((
|
|
163
|
+
}), ((_h = data.background) === null || _h === void 0 ? void 0 : _h.image) && /*#__PURE__*/_react["default"].createElement("div", {
|
|
164
164
|
className: "hover-image",
|
|
165
165
|
style: {
|
|
166
166
|
backgroundImage: "url('" + data.background.image + "')"
|
|
@@ -59,7 +59,7 @@ function (_super) {
|
|
|
59
59
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
60
60
|
className: "m-slide-image-pc"
|
|
61
61
|
}, /*#__PURE__*/_react["default"].createElement(_ParallaxScroll["default"], {
|
|
62
|
-
moveIcon: content.moveIcon,
|
|
62
|
+
moveIcon: content === null || content === void 0 ? void 0 : content.moveIcon,
|
|
63
63
|
source: groupSource,
|
|
64
64
|
xGap: columnSpace,
|
|
65
65
|
yGap: lineSpace
|