dolphin-weex-ui 2.3.19 → 2.3.21
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/CHANGELOG.md +10 -0
- package/dist/index.native.js +40 -54
- package/dist/index.native.js.map +1 -1
- package/dist/index.web.js +44 -58
- package/dist/index.web.js.map +1 -1
- package/package.json +1 -1
- package/packages/dof-ipx-bar/index.vue +1 -0
- package/packages/dof-popover2/index.vue +1 -1
- package/packages/utils/index.js +4 -0
package/CHANGELOG.md
CHANGED
package/dist/index.native.js
CHANGED
|
@@ -119,6 +119,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
119
119
|
value: true
|
|
120
120
|
});
|
|
121
121
|
|
|
122
|
+
var _env;
|
|
123
|
+
|
|
122
124
|
var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
|
|
123
125
|
|
|
124
126
|
exports.oneOf = oneOf;
|
|
@@ -251,7 +253,7 @@ var Utils = {
|
|
|
251
253
|
}, callback);
|
|
252
254
|
},
|
|
253
255
|
|
|
254
|
-
env: {
|
|
256
|
+
env: (_env = {
|
|
255
257
|
isWeb: function isWeb() {
|
|
256
258
|
var platform = weex.config.env.platform;
|
|
257
259
|
|
|
@@ -327,65 +329,48 @@ var Utils = {
|
|
|
327
329
|
var platform = weex.config.env.platform;
|
|
328
330
|
|
|
329
331
|
return platform.toLowerCase() === 'android';
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
|
|
332
|
+
}
|
|
333
|
+
}, _defineProperty(_env, 'isHarmony', function isHarmony() {
|
|
334
|
+
var platform = weex.config.env.platform;
|
|
333
335
|
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
var appName = weex.config.env.appName;
|
|
336
|
+
return platform.toLowerCase() === 'harmony';
|
|
337
|
+
}), _defineProperty(_env, 'isBuGu', function isBuGu() {
|
|
338
|
+
var appName = weex.config.env.appName;
|
|
338
339
|
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
isMideaWeex: function isMideaWeex() {
|
|
343
|
-
return Utils.env.isMeiJu() || Utils.env.isBuGu();
|
|
344
|
-
},
|
|
340
|
+
return appName === 'BG';
|
|
341
|
+
}), _defineProperty(_env, 'isMeiJu', function isMeiJu() {
|
|
342
|
+
var appName = weex.config.env.appName;
|
|
345
343
|
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
344
|
+
return (/(mj|meiju|美居)/i.test(appName)
|
|
345
|
+
);
|
|
346
|
+
}), _defineProperty(_env, 'isMideaWeex', function isMideaWeex() {
|
|
347
|
+
return Utils.env.isMeiJu() || Utils.env.isBuGu();
|
|
348
|
+
}), _defineProperty(_env, 'statusBarHeight', function statusBarHeight() {
|
|
349
|
+
var result = '20';
|
|
350
|
+
if (weex.config.env.statusBarHeight) {
|
|
351
|
+
if (weex.config.env.platform === 'iOS') {
|
|
352
|
+
// iOS使用pt为单位
|
|
353
|
+
result = weex.config.env.statusBarHeight;
|
|
354
|
+
} else {
|
|
355
|
+
// 安卓使用px为单位
|
|
356
|
+
result = weex.config.env.statusBarHeight / weex.config.env.scale;
|
|
359
357
|
}
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
return Utils.env.isWeb() ? 0 : Utils.env.isIPhoneX() ? 176 : 132;
|
|
366
|
-
},
|
|
367
|
-
|
|
368
|
-
/**
|
|
369
|
-
* 获取页面区域高度 = 设备屏幕实际高度 - 导航栏高度
|
|
370
|
-
* @returns {Number}
|
|
371
|
-
*/
|
|
372
|
-
getPageHeight: function getPageHeight() {
|
|
373
|
-
var env = weex.config.env;
|
|
358
|
+
}
|
|
359
|
+
return result;
|
|
360
|
+
}), _defineProperty(_env, 'navHeight', function navHeight() {
|
|
361
|
+
var env = weex.config.env;
|
|
374
362
|
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
363
|
+
return Utils.env.isWeb() ? 0 : Utils.env.isIPhoneX() ? 176 : 132;
|
|
364
|
+
}), _defineProperty(_env, 'getPageHeight', function getPageHeight() {
|
|
365
|
+
var env = weex.config.env;
|
|
378
366
|
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
getScreenHeight: function getScreenHeight() {
|
|
384
|
-
var env = weex.config.env;
|
|
367
|
+
var navHeight = Utils.env.isWeb() ? 0 : Utils.env.isIPhoneX() ? 176 : 132;
|
|
368
|
+
return env.deviceHeight / env.deviceWidth * 750 - navHeight;
|
|
369
|
+
}), _defineProperty(_env, 'getScreenHeight', function getScreenHeight() {
|
|
370
|
+
var env = weex.config.env;
|
|
385
371
|
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
},
|
|
372
|
+
return env.deviceHeight / env.deviceWidth * 750;
|
|
373
|
+
}), _env),
|
|
389
374
|
|
|
390
375
|
/**
|
|
391
376
|
* 版本号比较
|
|
@@ -25542,6 +25527,7 @@ exports.default = {
|
|
|
25542
25527
|
computed: {
|
|
25543
25528
|
isipx: function isipx() {
|
|
25544
25529
|
if (this.bottomArc) return true;
|
|
25530
|
+
if (weex.config.env.platform == "harmony" && weex.config.env.safeAreaBottomHeight) return true;
|
|
25545
25531
|
return weex && (weex.config.env.deviceModel === 'iPhone10,3' || weex.config.env.deviceModel === 'iPhone10,6' || //iphoneX
|
|
25546
25532
|
weex.config.env.deviceModel === 'iPhone11,8' || //iPhone XR
|
|
25547
25533
|
weex.config.env.deviceModel === 'iPhone11,2' || //iPhone XS
|
|
@@ -30809,7 +30795,7 @@ exports.default = {
|
|
|
30809
30795
|
if (this.animationLock) {
|
|
30810
30796
|
return;
|
|
30811
30797
|
}
|
|
30812
|
-
if (this.hasAnimation) {
|
|
30798
|
+
if (this.hasAnimation && this.show) {
|
|
30813
30799
|
this.setAnimationLock();
|
|
30814
30800
|
var popoverEl = this.$refs['dof-popover'];
|
|
30815
30801
|
var coverEl = this.$refs['dof-cover'];
|