@fonixtree/magic-design 1.0.57 → 1.0.58

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.
@@ -478,11 +478,6 @@ function (_super) {
478
478
  width: 44,
479
479
  background: userInfo.photo ? '#fff' : 'unset'
480
480
  }
481
- }), /*#__PURE__*/_react["default"].createElement("input", {
482
- accept: "image/*",
483
- id: "userPhoto",
484
- onChange: this.handleFileChange,
485
- type: "file"
486
481
  })), /*#__PURE__*/_react["default"].createElement("div", {
487
482
  className: "userInfo"
488
483
  }, /*#__PURE__*/_react["default"].createElement("p", {
@@ -117,8 +117,7 @@ function compositeDecorator(WrappedComponent) {
117
117
  background = nodeData.background;
118
118
  var _b = window.magicDesign,
119
119
  device = _b.device,
120
- compWidth = _b.compWidth,
121
- mode = _b.mode;
120
+ compWidth = _b.compWidth;
122
121
  var zIndex = '0';
123
122
  var position = 'relative';
124
123
 
@@ -129,11 +128,6 @@ function compositeDecorator(WrappedComponent) {
129
128
 
130
129
  if (nodeData.type === 'PC_NAVIGATION') {
131
130
  zIndex = '2';
132
- } // 为了解决PERSONAL_INFOMATION组件里图片裁切弹窗的zIndex层级问题
133
-
134
-
135
- if (mode === 'renderer' && nodeData.type === 'PERSONAL_INFOMATION') {
136
- position = 'unset';
137
131
  }
138
132
 
139
133
  var wrapStyle = {
@@ -217,15 +211,8 @@ function compositeDecorator(WrappedComponent) {
217
211
 
218
212
  _this.getWrapStyle = function () {
219
213
  var mode = window.magicDesign.mode;
220
- var nodeData = _this.props.nodeData;
221
- var position = 'relative'; // 为了解决PERSONAL_INFOMATION组件里图片裁切弹窗的zIndex层级问题
222
-
223
- if (mode === 'renderer' && nodeData.type === 'PERSONAL_INFOMATION') {
224
- position = 'unset';
225
- }
226
-
227
214
  var style = {
228
- position: position,
215
+ position: 'relative',
229
216
  zIndex: '1'
230
217
  }; // const { clickedFloor } = this.state;
231
218
  // banner 和 recommend 在选中状态需要加padding,让选中的外边框展示出来
@@ -478,11 +478,6 @@ function (_super) {
478
478
  width: 44,
479
479
  background: userInfo.photo ? '#fff' : 'unset'
480
480
  }
481
- }), /*#__PURE__*/_react["default"].createElement("input", {
482
- accept: "image/*",
483
- id: "userPhoto",
484
- onChange: this.handleFileChange,
485
- type: "file"
486
481
  })), /*#__PURE__*/_react["default"].createElement("div", {
487
482
  className: "userInfo"
488
483
  }, /*#__PURE__*/_react["default"].createElement("p", {
@@ -117,8 +117,7 @@ function compositeDecorator(WrappedComponent) {
117
117
  background = nodeData.background;
118
118
  var _b = window.magicDesign,
119
119
  device = _b.device,
120
- compWidth = _b.compWidth,
121
- mode = _b.mode;
120
+ compWidth = _b.compWidth;
122
121
  var zIndex = '0';
123
122
  var position = 'relative';
124
123
 
@@ -129,11 +128,6 @@ function compositeDecorator(WrappedComponent) {
129
128
 
130
129
  if (nodeData.type === 'PC_NAVIGATION') {
131
130
  zIndex = '2';
132
- } // 为了解决PERSONAL_INFOMATION组件里图片裁切弹窗的zIndex层级问题
133
-
134
-
135
- if (mode === 'renderer' && nodeData.type === 'PERSONAL_INFOMATION') {
136
- position = 'unset';
137
131
  }
138
132
 
139
133
  var wrapStyle = {
@@ -217,15 +211,8 @@ function compositeDecorator(WrappedComponent) {
217
211
 
218
212
  _this.getWrapStyle = function () {
219
213
  var mode = window.magicDesign.mode;
220
- var nodeData = _this.props.nodeData;
221
- var position = 'relative'; // 为了解决PERSONAL_INFOMATION组件里图片裁切弹窗的zIndex层级问题
222
-
223
- if (mode === 'renderer' && nodeData.type === 'PERSONAL_INFOMATION') {
224
- position = 'unset';
225
- }
226
-
227
214
  var style = {
228
- position: position,
215
+ position: 'relative',
229
216
  zIndex: '1'
230
217
  }; // const { clickedFloor } = this.state;
231
218
  // banner 和 recommend 在选中状态需要加padding,让选中的外边框展示出来
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.57",
4
+ "version": "1.0.58",
5
5
  "description": "Magic Design",
6
6
  "license": "MIT",
7
7
  "module": "es/index.js",