dolphin-weex-ui 2.0.5 → 2.0.7

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.0.7
4
+
5
+ - [ ! ] 优化dof-popup、dof-overlay组件交互逻辑
6
+ - [ ! ] date: 2024/02/03
7
+
8
+ ## 2.0.6
9
+
10
+ - [ ! ] 优化UI走查包括dof-minibar组件垂直居中问题
11
+ - [ ! ] date: 2024/01/22
12
+
3
13
  ## 2.0.5
4
14
 
5
15
  - [ ! ] 优化UI走查包括dof-popup,dof-button组件渲染抖动的问题
@@ -28171,13 +28171,6 @@ var animation = weex.requireModule('animation'); //
28171
28171
  //
28172
28172
  //
28173
28173
  //
28174
- //
28175
- //
28176
- //
28177
- //
28178
- //
28179
- //
28180
- //
28181
28174
 
28182
28175
  exports.default = {
28183
28176
  mixins: [_colmo2.default],
@@ -28209,6 +28202,33 @@ exports.default = {
28209
28202
  default: true
28210
28203
  }
28211
28204
  },
28205
+ data: function data() {
28206
+ return {
28207
+ show_: false,
28208
+ isIOS: weex.config.env.osName == 'iOS'
28209
+ };
28210
+ },
28211
+
28212
+ watch: {
28213
+ show: {
28214
+ handler: function handler(val) {
28215
+ var _this = this;
28216
+
28217
+ if (val) {
28218
+ this.show_ = true;
28219
+ this.hasAnimation && setTimeout(function () {
28220
+ _this.appearOverlay(true);
28221
+ }, 50);
28222
+ } else {
28223
+ this.hasAnimation && this.appearOverlay(false, this.duration, function () {
28224
+ _this.show_ = false;
28225
+ });
28226
+ }
28227
+ },
28228
+
28229
+ immediate: true
28230
+ }
28231
+ },
28212
28232
  computed: {
28213
28233
  overlayStyle: function overlayStyle() {
28214
28234
  return {
@@ -28219,23 +28239,6 @@ exports.default = {
28219
28239
  _opacity: function _opacity() {
28220
28240
  if (this.opacity !== undefined) return this.opacity;
28221
28241
  return this._isColmo ? 0.75 : 0.3;
28222
- },
28223
- shouldShow: function shouldShow() {
28224
- var _this = this;
28225
-
28226
- var show = this.show,
28227
- hasAnimation = this.hasAnimation;
28228
-
28229
- try {
28230
- hasAnimation && setTimeout(function () {
28231
- _this.appearOverlay(show);
28232
- }, 50);
28233
- } catch (error) {
28234
- this.$nextTick(function () {
28235
- _this.appearOverlay(show);
28236
- });
28237
- }
28238
- return show;
28239
28242
  }
28240
28243
  },
28241
28244
  methods: {
@@ -28246,6 +28249,7 @@ exports.default = {
28246
28249
  var _this2 = this;
28247
28250
 
28248
28251
  var duration = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.duration;
28252
+ var cb = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : function () {};
28249
28253
  var hasAnimation = this.hasAnimation,
28250
28254
  timingFunction = this.timingFunction,
28251
28255
  canAutoClose = this.canAutoClose;
@@ -28256,15 +28260,17 @@ exports.default = {
28256
28260
  if (hasAnimation && overlayEl) {
28257
28261
  animation.transition(overlayEl, {
28258
28262
  styles: {
28259
- opacity: bool ? 1 : 0
28263
+ opacity: bool ? 1 : this.isIOS ? 0.05 : 0
28260
28264
  },
28261
28265
  duration: duration,
28262
28266
  timingFunction: timingFunction[bool ? 0 : 1],
28263
28267
  delay: 0
28264
28268
  }, function () {
28269
+ cb();
28265
28270
  needEmit && _this2.$emit('dofOverlayBodyClicked', {});
28266
28271
  });
28267
28272
  } else {
28273
+ cb();
28268
28274
  needEmit && this.$emit('dofOverlayBodyClicked', {});
28269
28275
  }
28270
28276
  }
@@ -30272,14 +30278,6 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
30272
30278
  //
30273
30279
  //
30274
30280
  //
30275
- //
30276
- //
30277
- //
30278
- //
30279
- //
30280
- //
30281
- //
30282
- //
30283
30281
 
30284
30282
  var animation = weex.requireModule('animation');
30285
30283
  var platform = weex.config.env.platform;
@@ -30349,8 +30347,7 @@ exports.default = {
30349
30347
  haveOverlay: true,
30350
30348
  isOverShow: true,
30351
30349
  bottomArc: 0,
30352
- show_: false,
30353
- overlayShow: false
30350
+ show_: false
30354
30351
  };
30355
30352
  },
30356
30353
  computed: {
@@ -30371,18 +30368,6 @@ exports.default = {
30371
30368
  weex.config.env.deviceModel === 'Iphone14,3') //iPhone 13 Pro Max
30372
30369
  ;
30373
30370
  },
30374
- // isNeedShow() {
30375
- // try {
30376
- // setTimeout(() => {
30377
- // this.appearPopup(this.show_)
30378
- // }, 50)
30379
- // } catch (error) {
30380
- // this.$nextTick(() => {
30381
- // this.appearPopup(this.show_)
30382
- // })
30383
- // }
30384
- // return this.show_
30385
- // },
30386
30371
  _height: function _height() {
30387
30372
  var height = this.height,
30388
30373
  isipx = this.isipx,
@@ -30450,16 +30435,14 @@ exports.default = {
30450
30435
  handler: function handler(val) {
30451
30436
  var _this2 = this;
30452
30437
 
30453
- this.overlayShow = val;
30454
30438
  if (val) {
30455
30439
  setTimeout(function () {
30456
30440
  _this2.show_ = true;
30457
30441
  }, 80);
30458
30442
  } else {
30459
- this.appearPopup(false);
30460
- setTimeout(function () {
30443
+ this.appearPopup(false, 300, function () {
30461
30444
  _this2.show_ = false;
30462
- }, this.overlayCfg.duration || 300);
30445
+ });
30463
30446
  }
30464
30447
  },
30465
30448
 
@@ -30469,7 +30452,6 @@ exports.default = {
30469
30452
  mounted: function mounted() {
30470
30453
  var _this3 = this;
30471
30454
 
30472
- this.appearPopup(this.show, 150);
30473
30455
  _dolphinNativeBridge.Bridge.getAllBarHeight().then(function (res) {
30474
30456
  _this3.bottomArc = res.bottomArc || 0;
30475
30457
  });
@@ -30498,6 +30480,7 @@ exports.default = {
30498
30480
  var _this4 = this;
30499
30481
 
30500
30482
  var duration = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 300;
30483
+ var cb = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : function () {};
30501
30484
 
30502
30485
  this.isShow = bool;
30503
30486
  var popupEl = this.$refs['dof-popup'];
@@ -30511,6 +30494,7 @@ exports.default = {
30511
30494
  duration: duration,
30512
30495
  delay: 0
30513
30496
  }, this.animation), function () {
30497
+ cb();
30514
30498
  if (!bool) {
30515
30499
  _this4.$emit('dofPopupOverlayClicked', { pos: _this4.pos });
30516
30500
  }
@@ -48547,7 +48531,9 @@ module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c
48547
48531
  "src": _vm.leftButton_
48548
48532
  }
48549
48533
  }) : _vm._e(), (!_vm.leftButton_ && !_vm.leftText && _vm._isColmo) ? _c('dof-iconfont', {
48550
- staticClass: ["left-button"],
48534
+ staticStyle: {
48535
+ width: "58px"
48536
+ },
48551
48537
  attrs: {
48552
48538
  "code": '\u4717',
48553
48539
  "size": 64,
@@ -48966,7 +48952,7 @@ module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c
48966
48952
  }, [_c('dof-overlay', _vm._b({
48967
48953
  ref: "overlay",
48968
48954
  attrs: {
48969
- "show": _vm.overlayShow
48955
+ "show": _vm.show
48970
48956
  },
48971
48957
  on: {
48972
48958
  "dofOverlayBodyClicked": _vm.dofOverlayBodyClicking
@@ -48976,8 +48962,7 @@ module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c
48976
48962
  class: ['dof-popup', _vm.pos],
48977
48963
  style: _vm.padStyle,
48978
48964
  attrs: {
48979
- "height": _vm._height,
48980
- "hack": _vm.isNeedShow
48965
+ "height": _vm._height
48981
48966
  },
48982
48967
  on: {
48983
48968
  "click": function () {}
@@ -50586,13 +50571,10 @@ module.exports.render._withStripped = true
50586
50571
  /***/ (function(module, exports) {
50587
50572
 
50588
50573
  module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
50589
- return _c('div', [(_vm.show) ? _c('div', {
50574
+ return _c('div', [(_vm.show_) ? _c('div', {
50590
50575
  ref: "midea-overlay",
50591
50576
  staticClass: ["midea-overlay"],
50592
50577
  style: _vm.overlayStyle,
50593
- attrs: {
50594
- "hack": _vm.shouldShow
50595
- },
50596
50578
  on: {
50597
50579
  "click": _vm.overlayClicked
50598
50580
  }