@fonixtree/magic-design 0.0.146 → 0.0.148
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/SearchBar/mobile/index.js +4 -2
- package/es/composite-comp/dito/components/SearchBar/mobile/index.less +5 -0
- package/es/utils/coreUtil.js +6 -2
- package/lib/composite-comp/dito/components/SearchBar/mobile/index.js +4 -2
- package/lib/composite-comp/dito/components/SearchBar/mobile/index.less +5 -0
- package/lib/utils/coreUtil.js +6 -2
- package/package.json +1 -1
|
@@ -278,12 +278,14 @@ function (_super) {
|
|
|
278
278
|
type: "icon-ChatDots"
|
|
279
279
|
}), !!messageNum && /*#__PURE__*/_react["default"].createElement("span", {
|
|
280
280
|
className: "num"
|
|
281
|
-
}, messageNum))), data.content && ((_j = data.content.logo) === null || _j === void 0 ? void 0 : _j.open) && /*#__PURE__*/_react["default"].createElement(
|
|
281
|
+
}, messageNum))), data.content && ((_j = data.content.logo) === null || _j === void 0 ? void 0 : _j.open) && /*#__PURE__*/_react["default"].createElement("div", {
|
|
282
|
+
className: "logo"
|
|
283
|
+
}, /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
|
|
282
284
|
data: data.content.logo,
|
|
283
285
|
style: {
|
|
284
286
|
height: 30
|
|
285
287
|
}
|
|
286
|
-
}));
|
|
288
|
+
})));
|
|
287
289
|
};
|
|
288
290
|
|
|
289
291
|
SearchMobile.defaultProps = {
|
package/es/utils/coreUtil.js
CHANGED
|
@@ -310,9 +310,13 @@ var clickUrl = function clickUrl(url) {
|
|
|
310
310
|
if (url.startsWith('/')) {
|
|
311
311
|
(0, _commonUtil.navigateTo)(url);
|
|
312
312
|
} else {
|
|
313
|
-
// location.href = url;
|
|
314
313
|
var newUrl = isPc() ? pcLink : h5Link;
|
|
315
|
-
|
|
314
|
+
|
|
315
|
+
if (newUrl.startsWith('/')) {
|
|
316
|
+
(0, _commonUtil.navigateTo)(newUrl);
|
|
317
|
+
} else {
|
|
318
|
+
window.location.href = newUrl;
|
|
319
|
+
}
|
|
316
320
|
}
|
|
317
321
|
|
|
318
322
|
return;
|
|
@@ -278,12 +278,14 @@ function (_super) {
|
|
|
278
278
|
type: "icon-ChatDots"
|
|
279
279
|
}), !!messageNum && /*#__PURE__*/_react["default"].createElement("span", {
|
|
280
280
|
className: "num"
|
|
281
|
-
}, messageNum))), data.content && ((_j = data.content.logo) === null || _j === void 0 ? void 0 : _j.open) && /*#__PURE__*/_react["default"].createElement(
|
|
281
|
+
}, messageNum))), data.content && ((_j = data.content.logo) === null || _j === void 0 ? void 0 : _j.open) && /*#__PURE__*/_react["default"].createElement("div", {
|
|
282
|
+
className: "logo"
|
|
283
|
+
}, /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
|
|
282
284
|
data: data.content.logo,
|
|
283
285
|
style: {
|
|
284
286
|
height: 30
|
|
285
287
|
}
|
|
286
|
-
}));
|
|
288
|
+
})));
|
|
287
289
|
};
|
|
288
290
|
|
|
289
291
|
SearchMobile.defaultProps = {
|
package/lib/utils/coreUtil.js
CHANGED
|
@@ -310,9 +310,13 @@ var clickUrl = function clickUrl(url) {
|
|
|
310
310
|
if (url.startsWith('/')) {
|
|
311
311
|
(0, _commonUtil.navigateTo)(url);
|
|
312
312
|
} else {
|
|
313
|
-
// location.href = url;
|
|
314
313
|
var newUrl = isPc() ? pcLink : h5Link;
|
|
315
|
-
|
|
314
|
+
|
|
315
|
+
if (newUrl.startsWith('/')) {
|
|
316
|
+
(0, _commonUtil.navigateTo)(newUrl);
|
|
317
|
+
} else {
|
|
318
|
+
window.location.href = newUrl;
|
|
319
|
+
}
|
|
316
320
|
}
|
|
317
321
|
|
|
318
322
|
return;
|