@fonixtree/magic-design 2.0.24 → 2.0.26
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/assets/fonts/.DS_Store +0 -0
- package/es/common/ImageLazy/index.less +0 -0
- package/es/meta-comp/components/Image/index.js +5 -4
- package/es/utils/coreUtil.js +2 -1
- package/lib/assets/fonts/.DS_Store +0 -0
- package/lib/common/ImageLazy/index.less +0 -0
- package/lib/meta-comp/components/Image/index.js +5 -4
- package/lib/utils/coreUtil.js +2 -1
- package/package.json +1 -1
|
Binary file
|
|
File without changes
|
|
@@ -21,6 +21,8 @@ var _commonUtil = require("../../../utils/commonUtil");
|
|
|
21
21
|
|
|
22
22
|
var _decorator = require("../../../decorator");
|
|
23
23
|
|
|
24
|
+
var _ImageLazy = _interopRequireDefault(require("../../../common/ImageLazy"));
|
|
25
|
+
|
|
24
26
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
25
27
|
|
|
26
28
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
@@ -190,10 +192,9 @@ function (_super) {
|
|
|
190
192
|
onClick: function onClick() {
|
|
191
193
|
(0, _coreUtil.clickUrl)(data.content.clickUrl);
|
|
192
194
|
}
|
|
193
|
-
}, srcImg && /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
var scale = _this.imgRef.current.clientWidth / 600;
|
|
195
|
+
}, srcImg && /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_ImageLazy["default"], {
|
|
196
|
+
onLoadFunc: function onLoadFunc(clientWidth) {
|
|
197
|
+
var scale = clientWidth / 600;
|
|
197
198
|
|
|
198
199
|
_this.setState({
|
|
199
200
|
scale: scale
|
package/es/utils/coreUtil.js
CHANGED
|
@@ -313,7 +313,8 @@ var clickUrl = function clickUrl(url) {
|
|
|
313
313
|
|
|
314
314
|
if ((0, _androidUtil.browserVersion)().isAshitaApp) {
|
|
315
315
|
(0, _androidUtil.sendToApp)(data);
|
|
316
|
-
} else if ((0, _androidUtil.browserVersion)().isApp &&
|
|
316
|
+
} else if ((0, _androidUtil.browserVersion)().isApp && params.link && params.link.startsWith('http')) {
|
|
317
|
+
// 兼容Nuri的 绝对路径跳转
|
|
317
318
|
(0, _androidUtil.sendToAndroid)({
|
|
318
319
|
type: 'jumpBrowser',
|
|
319
320
|
params: {
|
|
Binary file
|
|
File without changes
|
|
@@ -21,6 +21,8 @@ var _commonUtil = require("../../../utils/commonUtil");
|
|
|
21
21
|
|
|
22
22
|
var _decorator = require("../../../decorator");
|
|
23
23
|
|
|
24
|
+
var _ImageLazy = _interopRequireDefault(require("../../../common/ImageLazy"));
|
|
25
|
+
|
|
24
26
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
25
27
|
|
|
26
28
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
@@ -190,10 +192,9 @@ function (_super) {
|
|
|
190
192
|
onClick: function onClick() {
|
|
191
193
|
(0, _coreUtil.clickUrl)(data.content.clickUrl);
|
|
192
194
|
}
|
|
193
|
-
}, srcImg && /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
var scale = _this.imgRef.current.clientWidth / 600;
|
|
195
|
+
}, srcImg && /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_ImageLazy["default"], {
|
|
196
|
+
onLoadFunc: function onLoadFunc(clientWidth) {
|
|
197
|
+
var scale = clientWidth / 600;
|
|
197
198
|
|
|
198
199
|
_this.setState({
|
|
199
200
|
scale: scale
|
package/lib/utils/coreUtil.js
CHANGED
|
@@ -313,7 +313,8 @@ var clickUrl = function clickUrl(url) {
|
|
|
313
313
|
|
|
314
314
|
if ((0, _androidUtil.browserVersion)().isAshitaApp) {
|
|
315
315
|
(0, _androidUtil.sendToApp)(data);
|
|
316
|
-
} else if ((0, _androidUtil.browserVersion)().isApp &&
|
|
316
|
+
} else if ((0, _androidUtil.browserVersion)().isApp && params.link && params.link.startsWith('http')) {
|
|
317
|
+
// 兼容Nuri的 绝对路径跳转
|
|
317
318
|
(0, _androidUtil.sendToAndroid)({
|
|
318
319
|
type: 'jumpBrowser',
|
|
319
320
|
params: {
|