@fonixtree/magic-design 2.0.116 → 2.0.117
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/HeadNavigation/mobile/index.js +1 -1
- package/es/composite-comp/dito/components/SearchBar/mobile/index.js +3 -1
- package/es/composite-comp/monpay/components/Bundle/mobile/BundleItem/index.js +2 -1
- package/es/composite-comp/monpay/components/MonpayRecommend/mobile/SearchCondition/index.js +4 -6
- package/es/constants/index.js +1 -1
- package/es/utils/commonUtil.js +1 -1
- package/es/utils/coreUtil.js +4 -4
- package/lib/composite-comp/dito/components/HeadNavigation/mobile/index.js +1 -1
- package/lib/composite-comp/dito/components/SearchBar/mobile/index.js +3 -1
- package/lib/composite-comp/monpay/components/Bundle/mobile/BundleItem/index.js +2 -1
- package/lib/composite-comp/monpay/components/MonpayRecommend/mobile/SearchCondition/index.js +4 -6
- package/lib/constants/index.js +1 -1
- package/lib/utils/commonUtil.js +1 -1
- package/lib/utils/coreUtil.js +4 -4
- package/package.json +1 -1
|
@@ -361,7 +361,9 @@ function (_super) {
|
|
|
361
361
|
}, data.content && ((_b = data.content.box) === null || _b === void 0 ? void 0 : _b.open) && /*#__PURE__*/_react["default"].createElement("div", {
|
|
362
362
|
className: "search-input-wrap",
|
|
363
363
|
onClick: function onClick() {
|
|
364
|
-
return (0, _coreUtil.clickUrl)('/search-page'
|
|
364
|
+
return (0, _coreUtil.clickUrl)('/search-page', {
|
|
365
|
+
searchValue: value
|
|
366
|
+
});
|
|
365
367
|
},
|
|
366
368
|
style: {
|
|
367
369
|
borderColor: (_d = (_c = data.content.box) === null || _c === void 0 ? void 0 : _c.color) === null || _d === void 0 ? void 0 : _d.mobile,
|
|
@@ -105,26 +105,24 @@ function SearchCondition(props) {
|
|
|
105
105
|
};
|
|
106
106
|
|
|
107
107
|
var hideBottomBar = function hideBottomBar() {
|
|
108
|
-
var homeNavBar = document.querySelector('
|
|
108
|
+
var homeNavBar = document.querySelector('#bottom-menu');
|
|
109
109
|
if (homeNavBar) homeNavBar.style.visibility = 'hidden';
|
|
110
|
-
var toTop = document.querySelector('
|
|
110
|
+
var toTop = document.querySelector('#homeToTop');
|
|
111
111
|
if (toTop) toTop.style.visibility = 'hidden';
|
|
112
112
|
};
|
|
113
113
|
|
|
114
114
|
var showBottomBar = function showBottomBar() {
|
|
115
|
-
var homeNavBar = document.querySelector('
|
|
115
|
+
var homeNavBar = document.querySelector('#bottom-menu');
|
|
116
116
|
if (homeNavBar) homeNavBar.style.visibility = 'visible';
|
|
117
|
-
var toTop = document.querySelector('
|
|
117
|
+
var toTop = document.querySelector('#homeToTop');
|
|
118
118
|
if (toTop) toTop.style.visibility = 'visible';
|
|
119
119
|
};
|
|
120
120
|
|
|
121
121
|
(0, _react.useEffect)(function () {
|
|
122
122
|
if (visible) {
|
|
123
123
|
hideBottomBar();
|
|
124
|
-
console.log('hide');
|
|
125
124
|
} else {
|
|
126
125
|
showBottomBar();
|
|
127
|
-
console.log('show');
|
|
128
126
|
}
|
|
129
127
|
}, [visible]);
|
|
130
128
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
package/es/constants/index.js
CHANGED
package/es/utils/commonUtil.js
CHANGED
package/es/utils/coreUtil.js
CHANGED
|
@@ -302,14 +302,14 @@ function isUrl(string) {
|
|
|
302
302
|
}
|
|
303
303
|
}
|
|
304
304
|
|
|
305
|
-
var clickUrl = function clickUrl(url) {
|
|
305
|
+
var clickUrl = function clickUrl(url, state) {
|
|
306
306
|
var _a;
|
|
307
307
|
|
|
308
308
|
if (url === void 0) {
|
|
309
309
|
url = '';
|
|
310
310
|
}
|
|
311
311
|
|
|
312
|
-
console.log('clickUrl...', url); // 只读模式,设计模式,url为空,邮箱模版
|
|
312
|
+
console.log('clickUrl...', url, state); // 只读模式,设计模式,url为空,邮箱模版
|
|
313
313
|
// if (window.magicDesign.readOnly || window.magicDesign.mode !== 'renderer' || !url || window.magicDesign.outputType == 'html') {
|
|
314
314
|
// return;
|
|
315
315
|
// }
|
|
@@ -394,10 +394,10 @@ var clickUrl = function clickUrl(url) {
|
|
|
394
394
|
window.open(link);
|
|
395
395
|
}
|
|
396
396
|
} else {
|
|
397
|
-
(0, _commonUtil.navigateTo)(link);
|
|
397
|
+
(0, _commonUtil.navigateTo)(link, state);
|
|
398
398
|
}
|
|
399
399
|
} else {
|
|
400
|
-
(0, _commonUtil.navigateTo)(link);
|
|
400
|
+
(0, _commonUtil.navigateTo)(link, state);
|
|
401
401
|
}
|
|
402
402
|
}
|
|
403
403
|
};
|
|
@@ -361,7 +361,9 @@ function (_super) {
|
|
|
361
361
|
}, data.content && ((_b = data.content.box) === null || _b === void 0 ? void 0 : _b.open) && /*#__PURE__*/_react["default"].createElement("div", {
|
|
362
362
|
className: "search-input-wrap",
|
|
363
363
|
onClick: function onClick() {
|
|
364
|
-
return (0, _coreUtil.clickUrl)('/search-page'
|
|
364
|
+
return (0, _coreUtil.clickUrl)('/search-page', {
|
|
365
|
+
searchValue: value
|
|
366
|
+
});
|
|
365
367
|
},
|
|
366
368
|
style: {
|
|
367
369
|
borderColor: (_d = (_c = data.content.box) === null || _c === void 0 ? void 0 : _c.color) === null || _d === void 0 ? void 0 : _d.mobile,
|
package/lib/composite-comp/monpay/components/MonpayRecommend/mobile/SearchCondition/index.js
CHANGED
|
@@ -105,26 +105,24 @@ function SearchCondition(props) {
|
|
|
105
105
|
};
|
|
106
106
|
|
|
107
107
|
var hideBottomBar = function hideBottomBar() {
|
|
108
|
-
var homeNavBar = document.querySelector('
|
|
108
|
+
var homeNavBar = document.querySelector('#bottom-menu');
|
|
109
109
|
if (homeNavBar) homeNavBar.style.visibility = 'hidden';
|
|
110
|
-
var toTop = document.querySelector('
|
|
110
|
+
var toTop = document.querySelector('#homeToTop');
|
|
111
111
|
if (toTop) toTop.style.visibility = 'hidden';
|
|
112
112
|
};
|
|
113
113
|
|
|
114
114
|
var showBottomBar = function showBottomBar() {
|
|
115
|
-
var homeNavBar = document.querySelector('
|
|
115
|
+
var homeNavBar = document.querySelector('#bottom-menu');
|
|
116
116
|
if (homeNavBar) homeNavBar.style.visibility = 'visible';
|
|
117
|
-
var toTop = document.querySelector('
|
|
117
|
+
var toTop = document.querySelector('#homeToTop');
|
|
118
118
|
if (toTop) toTop.style.visibility = 'visible';
|
|
119
119
|
};
|
|
120
120
|
|
|
121
121
|
(0, _react.useEffect)(function () {
|
|
122
122
|
if (visible) {
|
|
123
123
|
hideBottomBar();
|
|
124
|
-
console.log('hide');
|
|
125
124
|
} else {
|
|
126
125
|
showBottomBar();
|
|
127
|
-
console.log('show');
|
|
128
126
|
}
|
|
129
127
|
}, [visible]);
|
|
130
128
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
package/lib/constants/index.js
CHANGED
package/lib/utils/commonUtil.js
CHANGED
package/lib/utils/coreUtil.js
CHANGED
|
@@ -302,14 +302,14 @@ function isUrl(string) {
|
|
|
302
302
|
}
|
|
303
303
|
}
|
|
304
304
|
|
|
305
|
-
var clickUrl = function clickUrl(url) {
|
|
305
|
+
var clickUrl = function clickUrl(url, state) {
|
|
306
306
|
var _a;
|
|
307
307
|
|
|
308
308
|
if (url === void 0) {
|
|
309
309
|
url = '';
|
|
310
310
|
}
|
|
311
311
|
|
|
312
|
-
console.log('clickUrl...', url); // 只读模式,设计模式,url为空,邮箱模版
|
|
312
|
+
console.log('clickUrl...', url, state); // 只读模式,设计模式,url为空,邮箱模版
|
|
313
313
|
// if (window.magicDesign.readOnly || window.magicDesign.mode !== 'renderer' || !url || window.magicDesign.outputType == 'html') {
|
|
314
314
|
// return;
|
|
315
315
|
// }
|
|
@@ -394,10 +394,10 @@ var clickUrl = function clickUrl(url) {
|
|
|
394
394
|
window.open(link);
|
|
395
395
|
}
|
|
396
396
|
} else {
|
|
397
|
-
(0, _commonUtil.navigateTo)(link);
|
|
397
|
+
(0, _commonUtil.navigateTo)(link, state);
|
|
398
398
|
}
|
|
399
399
|
} else {
|
|
400
|
-
(0, _commonUtil.navigateTo)(link);
|
|
400
|
+
(0, _commonUtil.navigateTo)(link, state);
|
|
401
401
|
}
|
|
402
402
|
}
|
|
403
403
|
};
|