@fonixtree/magic-design 1.0.190 → 1.0.192
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/common/components/ProductItem/index.js +5 -15
- package/es/composite-comp/dito/components/FlashDeal/pc/ProductItem/index.js +1 -1
- package/lib/composite-comp/common/components/ProductItem/index.js +5 -15
- package/lib/composite-comp/dito/components/FlashDeal/pc/ProductItem/index.js +1 -1
- package/package.json +1 -1
|
@@ -97,21 +97,11 @@ function (_super) {
|
|
|
97
97
|
|
|
98
98
|
ProductItem.prototype.componentDidMount = function () {
|
|
99
99
|
if (this.videoRef.current) {
|
|
100
|
-
|
|
100
|
+
this.videoRef.current.setAttribute('playsinline', '');
|
|
101
|
+
this.videoRef.current.setAttribute('webkit-playsinline', ''); // 阻止全屏
|
|
101
102
|
|
|
102
|
-
|
|
103
|
-
video_1.setAttribute('webkit-playsinline', 'true');
|
|
104
|
-
video_1.setAttribute('x-webkit-airplay', 'allow');
|
|
105
|
-
video_1.setAttribute('muted', 'true'); // 阻止全屏
|
|
106
|
-
|
|
107
|
-
video_1.addEventListener('webkitbeginfullscreen', function (e) {
|
|
103
|
+
this.videoRef.current.addEventListener('webkitbeginfullscreen', function (e) {
|
|
108
104
|
e.preventDefault();
|
|
109
|
-
video_1.webkitExitFullscreen();
|
|
110
|
-
});
|
|
111
|
-
video_1.addEventListener('webkitpresentationmodechanged', function () {
|
|
112
|
-
if (video_1.webkitPresentationMode === 'fullscreen') {
|
|
113
|
-
video_1.webkitSetPresentationMode('inline');
|
|
114
|
-
}
|
|
115
105
|
});
|
|
116
106
|
}
|
|
117
107
|
};
|
|
@@ -193,8 +183,8 @@ function (_super) {
|
|
|
193
183
|
loop: true,
|
|
194
184
|
muted: true,
|
|
195
185
|
playsinline: true,
|
|
196
|
-
"webkit-playsinline":
|
|
197
|
-
"x-webkit-airplay": "
|
|
186
|
+
"webkit-playsinline": true,
|
|
187
|
+
"x-webkit-airplay": "deny"
|
|
198
188
|
}, /*#__PURE__*/_react["default"].createElement("source", {
|
|
199
189
|
src: data.url,
|
|
200
190
|
type: "video/mp4"
|
|
@@ -187,7 +187,7 @@ function (_super) {
|
|
|
187
187
|
className: "progress-container"
|
|
188
188
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
189
189
|
className: "text"
|
|
190
|
-
}, salePercent, "%
|
|
190
|
+
}, salePercent, "% Sold"), /*#__PURE__*/_react["default"].createElement("div", {
|
|
191
191
|
className: "progress",
|
|
192
192
|
style: {
|
|
193
193
|
width: salePercent + "%",
|
|
@@ -97,21 +97,11 @@ function (_super) {
|
|
|
97
97
|
|
|
98
98
|
ProductItem.prototype.componentDidMount = function () {
|
|
99
99
|
if (this.videoRef.current) {
|
|
100
|
-
|
|
100
|
+
this.videoRef.current.setAttribute('playsinline', '');
|
|
101
|
+
this.videoRef.current.setAttribute('webkit-playsinline', ''); // 阻止全屏
|
|
101
102
|
|
|
102
|
-
|
|
103
|
-
video_1.setAttribute('webkit-playsinline', 'true');
|
|
104
|
-
video_1.setAttribute('x-webkit-airplay', 'allow');
|
|
105
|
-
video_1.setAttribute('muted', 'true'); // 阻止全屏
|
|
106
|
-
|
|
107
|
-
video_1.addEventListener('webkitbeginfullscreen', function (e) {
|
|
103
|
+
this.videoRef.current.addEventListener('webkitbeginfullscreen', function (e) {
|
|
108
104
|
e.preventDefault();
|
|
109
|
-
video_1.webkitExitFullscreen();
|
|
110
|
-
});
|
|
111
|
-
video_1.addEventListener('webkitpresentationmodechanged', function () {
|
|
112
|
-
if (video_1.webkitPresentationMode === 'fullscreen') {
|
|
113
|
-
video_1.webkitSetPresentationMode('inline');
|
|
114
|
-
}
|
|
115
105
|
});
|
|
116
106
|
}
|
|
117
107
|
};
|
|
@@ -193,8 +183,8 @@ function (_super) {
|
|
|
193
183
|
loop: true,
|
|
194
184
|
muted: true,
|
|
195
185
|
playsinline: true,
|
|
196
|
-
"webkit-playsinline":
|
|
197
|
-
"x-webkit-airplay": "
|
|
186
|
+
"webkit-playsinline": true,
|
|
187
|
+
"x-webkit-airplay": "deny"
|
|
198
188
|
}, /*#__PURE__*/_react["default"].createElement("source", {
|
|
199
189
|
src: data.url,
|
|
200
190
|
type: "video/mp4"
|
|
@@ -187,7 +187,7 @@ function (_super) {
|
|
|
187
187
|
className: "progress-container"
|
|
188
188
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
189
189
|
className: "text"
|
|
190
|
-
}, salePercent, "%
|
|
190
|
+
}, salePercent, "% Sold"), /*#__PURE__*/_react["default"].createElement("div", {
|
|
191
191
|
className: "progress",
|
|
192
192
|
style: {
|
|
193
193
|
width: salePercent + "%",
|