dolphin-weex-ui 2.1.9 → 2.2.0

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,10 @@
1
1
  # 升级日志
2
2
 
3
+ ## 2.2.0
4
+
5
+ - [ ! ] 修复dof-card、dof-modal、dof-popover2、dof-switch等 web端显示问题
6
+ - [ ! ] date: 2024/08/14
7
+
3
8
  ## 2.1.9
4
9
 
5
10
  - [ ! ] 修复dof-tab-page、dof-slider等 web端显示问题
@@ -18646,6 +18646,8 @@ exports.default = {
18646
18646
  _this.bodyHeight = res.size.height;
18647
18647
  if (_this.collapsed_) {
18648
18648
  _this.collapseBody(0);
18649
+ } else {
18650
+ _this.expandeBody();
18649
18651
  }
18650
18652
  });
18651
18653
  });
@@ -30334,7 +30336,6 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
30334
30336
  //
30335
30337
  //
30336
30338
  //
30337
- //
30338
30339
 
30339
30340
  var env = weex.config.env;
30340
30341
 
@@ -36238,7 +36239,8 @@ exports.default = {
36238
36239
  startRight: null,
36239
36240
  prevScreenX: null,
36240
36241
  isTouching: false,
36241
- isShow: false
36242
+ isShow: false,
36243
+ getWidthRectTime: 0
36242
36244
  };
36243
36245
  },
36244
36246
 
@@ -36387,17 +36389,25 @@ exports.default = {
36387
36389
  }
36388
36390
  },
36389
36391
  mounted: function mounted() {
36390
- var _this = this;
36391
-
36392
- getBoundingClientRect(this.$refs.track, function (res) {
36393
- if (res.result) {
36394
- // 实际可滑动长度(可变化范围)= bar宽度 - btn宽度
36395
- _this.width = res.size.width - _this._trackHeight;
36396
- }
36397
- }, this.delay);
36392
+ this.getRect();
36398
36393
  },
36399
36394
 
36400
36395
  methods: {
36396
+ getRect: function getRect() {
36397
+ var _this = this;
36398
+
36399
+ getBoundingClientRect(this.$refs.track, function (res) {
36400
+ if (res.result && res.size.width !== 0) {
36401
+ // 实际可滑动长度(可变化范围)= bar宽度 - btn宽度
36402
+ _this.width = res.size.width - _this._trackHeight;
36403
+ } else {
36404
+ _this.getWidthRectTime < 6 ? setTimeout(function () {
36405
+ _this.getWidthRectTime++;
36406
+ _this.getRect();
36407
+ }, 50) : _this.width = res.size.width - _this._trackHeight;
36408
+ }
36409
+ }, this.delay);
36410
+ },
36401
36411
  onTouchStart: function onTouchStart(e) {
36402
36412
  var _this2 = this;
36403
36413
 
@@ -38975,6 +38985,10 @@ var _dofSpinner = __webpack_require__(8);
38975
38985
 
38976
38986
  var _dofSpinner2 = _interopRequireDefault(_dofSpinner);
38977
38987
 
38988
+ var _utils2 = __webpack_require__(1);
38989
+
38990
+ var _utils3 = _interopRequireDefault(_utils2);
38991
+
38978
38992
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
38979
38993
 
38980
38994
  //
@@ -39186,6 +39200,7 @@ exports.default = {
39186
39200
  rightDotStyle: function rightDotStyle() {
39187
39201
  var offset = 46;
39188
39202
  if (this._isColmo && this.type === 'default' || this.type === 'colmo') offset = 50;
39203
+ if (_utils3.default.env.isWeb()) offset = 46;
39189
39204
  return {
39190
39205
  backgroundColor: this._dotColor,
39191
39206
  transform: 'translateX(' + offset + 'px) scale(2.25)'
@@ -43083,7 +43098,6 @@ module.exports = {
43083
43098
  "footer-more-btn": {
43084
43099
  "alignItems": "center",
43085
43100
  "justifyContent": "center",
43086
- "flex": 1,
43087
43101
  "height": "90",
43088
43102
  "borderTopWidth": "1",
43089
43103
  "position": "relative"
@@ -48917,7 +48931,6 @@ module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c
48917
48931
  class: ['u-popover-inner', _vm.theme !== 'white' && 'u-popover-theme-dark'],
48918
48932
  style: _vm.popoverInnerStyle,
48919
48933
  attrs: {
48920
- "scrollDirection": "horizontal",
48921
48934
  "showScrollbar": "false"
48922
48935
  }
48923
48936
  }, _vm._l((_vm.buttons), function(item, i) {