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 CHANGED
@@ -1,5 +1,15 @@
1
1
  # 升级日志
2
2
 
3
+ ## 2.3.21
4
+
5
+ - [ ! ] dof-ipx-bar鸿蒙适配
6
+ - [ ! ] date: 2025/10/20
7
+
8
+ ## 2.3.20
9
+
10
+ - [ ! ] 修复dof-popover2
11
+ - [ ! ] date: 2025/10/11
12
+
3
13
  ## 2.3.19
4
14
 
5
15
  - [ ! ] 修正dof-modal 背景色
@@ -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
- isBuGu: function isBuGu() {
332
- var appName = weex.config.env.appName;
332
+ }
333
+ }, _defineProperty(_env, 'isHarmony', function isHarmony() {
334
+ var platform = weex.config.env.platform;
333
335
 
334
- return appName === 'BG';
335
- },
336
- isMeiJu: function isMeiJu() {
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
- return (/(mj|meiju|美居)/i.test(appName)
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
- statusBarHeight: function statusBarHeight() {
350
- var result = '20';
351
- if (weex.config.env.statusBarHeight) {
352
- if (weex.config.env.platform === 'iOS') {
353
- // iOS使用pt为单位
354
- result = weex.config.env.statusBarHeight;
355
- } else {
356
- // 安卓使用px为单位
357
- result = weex.config.env.statusBarHeight / weex.config.env.scale;
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
- return result;
361
- },
362
- navHeight: function navHeight() {
363
- var env = weex.config.env;
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
- var navHeight = Utils.env.isWeb() ? 0 : Utils.env.isIPhoneX() ? 176 : 132;
376
- return env.deviceHeight / env.deviceWidth * 750 - navHeight;
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
- * @returns {Number}
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
- return env.deviceHeight / env.deviceWidth * 750;
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'];