@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.
@@ -97,21 +97,11 @@ function (_super) {
97
97
 
98
98
  ProductItem.prototype.componentDidMount = function () {
99
99
  if (this.videoRef.current) {
100
- var video_1 = this.videoRef.current; // iOS 10+ 特殊处理
100
+ this.videoRef.current.setAttribute('playsinline', '');
101
+ this.videoRef.current.setAttribute('webkit-playsinline', ''); // 阻止全屏
101
102
 
102
- video_1.setAttribute('playsinline', 'true');
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": "true",
197
- "x-webkit-airplay": "allow"
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, "% Terjual"), /*#__PURE__*/_react["default"].createElement("div", {
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
- var video_1 = this.videoRef.current; // iOS 10+ 特殊处理
100
+ this.videoRef.current.setAttribute('playsinline', '');
101
+ this.videoRef.current.setAttribute('webkit-playsinline', ''); // 阻止全屏
101
102
 
102
- video_1.setAttribute('playsinline', 'true');
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": "true",
197
- "x-webkit-airplay": "allow"
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, "% Terjual"), /*#__PURE__*/_react["default"].createElement("div", {
190
+ }, salePercent, "% Sold"), /*#__PURE__*/_react["default"].createElement("div", {
191
191
  className: "progress",
192
192
  style: {
193
193
  width: salePercent + "%",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fonixtree/magic-design",
3
3
  "author": "Cylon Team",
4
- "version": "1.0.190",
4
+ "version": "1.0.192",
5
5
  "description": "Magic Design",
6
6
  "license": "MIT",
7
7
  "module": "es/index.js",