@fonixtree/magic-design 0.1.61 → 0.1.62

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.
@@ -74,7 +74,7 @@ function (_super) {
74
74
  // 兼容新开发的功能: video新增播放按钮 的设置
75
75
  var nodeData = this.props.nodeData;
76
76
 
77
- if (nodeData.groupSource & nodeData.groupSource.length > 0) {
77
+ if (nodeData.groupSource && nodeData.groupSource.length > 0) {
78
78
  nodeData.groupSource.forEach(function (group) {
79
79
  if (!group.playIcon) {
80
80
  group.playIcon = {
@@ -118,7 +118,7 @@ function (_super) {
118
118
  return /*#__PURE__*/_react["default"].createElement("div", {
119
119
  className: "video-layout1-wrap"
120
120
  }, data.groupSource.map(function (group) {
121
- var _a, _b;
121
+ var _a, _b, _c;
122
122
  /** 当前是否在播放 */
123
123
 
124
124
 
@@ -151,14 +151,14 @@ function (_super) {
151
151
  }),
152
152
  play: (_b = _this.videoRefMap[group.id]) === null || _b === void 0 ? void 0 : _b.playing,
153
153
  videoId: group.id
154
- }), !isPlaying && group.video.playButton == 'Middle' && group.playIcon.open && /*#__PURE__*/_react["default"].createElement("div", {
154
+ }), !isPlaying && group.video.playButton == 'Middle' && ((_c = group === null || group === void 0 ? void 0 : group.playIcon) === null || _c === void 0 ? void 0 : _c.open) && /*#__PURE__*/_react["default"].createElement("div", {
155
155
  className: "play-btn center",
156
156
  onClick: function onClick() {
157
157
  _this.playOrPause(group);
158
158
  }
159
159
  }, /*#__PURE__*/_react["default"].createElement(_PlaySvg["default"], {
160
160
  imgName: group.playIcon.iconType,
161
- imgWidth: group.playIcon.size
161
+ imgWidth: group === null || group === void 0 ? void 0 : group.playIcon.size
162
162
  })), data.share.open && !isPlaying && /*#__PURE__*/_react["default"].createElement(_index["default"], {
163
163
  data: data
164
164
  }), !isPlaying && /*#__PURE__*/_react["default"].createElement(_VideoTag["default"], {
@@ -74,7 +74,7 @@ function (_super) {
74
74
  // 兼容新开发的功能: video新增播放按钮 的设置
75
75
  var nodeData = this.props.nodeData;
76
76
 
77
- if (nodeData.groupSource & nodeData.groupSource.length > 0) {
77
+ if (nodeData.groupSource && nodeData.groupSource.length > 0) {
78
78
  nodeData.groupSource.forEach(function (group) {
79
79
  if (!group.playIcon) {
80
80
  group.playIcon = {
@@ -118,7 +118,7 @@ function (_super) {
118
118
  return /*#__PURE__*/_react["default"].createElement("div", {
119
119
  className: "video-layout1-wrap"
120
120
  }, data.groupSource.map(function (group) {
121
- var _a, _b;
121
+ var _a, _b, _c;
122
122
  /** 当前是否在播放 */
123
123
 
124
124
 
@@ -151,14 +151,14 @@ function (_super) {
151
151
  }),
152
152
  play: (_b = _this.videoRefMap[group.id]) === null || _b === void 0 ? void 0 : _b.playing,
153
153
  videoId: group.id
154
- }), !isPlaying && group.video.playButton == 'Middle' && group.playIcon.open && /*#__PURE__*/_react["default"].createElement("div", {
154
+ }), !isPlaying && group.video.playButton == 'Middle' && ((_c = group === null || group === void 0 ? void 0 : group.playIcon) === null || _c === void 0 ? void 0 : _c.open) && /*#__PURE__*/_react["default"].createElement("div", {
155
155
  className: "play-btn center",
156
156
  onClick: function onClick() {
157
157
  _this.playOrPause(group);
158
158
  }
159
159
  }, /*#__PURE__*/_react["default"].createElement(_PlaySvg["default"], {
160
160
  imgName: group.playIcon.iconType,
161
- imgWidth: group.playIcon.size
161
+ imgWidth: group === null || group === void 0 ? void 0 : group.playIcon.size
162
162
  })), data.share.open && !isPlaying && /*#__PURE__*/_react["default"].createElement(_index["default"], {
163
163
  data: data
164
164
  }), !isPlaying && /*#__PURE__*/_react["default"].createElement(_VideoTag["default"], {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fonixtree/magic-design",
3
3
  "author": "Cylon Team",
4
- "version": "0.1.61",
4
+ "version": "0.1.62",
5
5
  "description": "Magic Design",
6
6
  "license": "MIT",
7
7
  "module": "es/index.js",