dolphin-weex-ui 1.3.4 → 1.3.6
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 +11 -1
- package/dist/index.native.js +58 -19
- package/dist/index.native.js.map +1 -1
- package/dist/index.web.js +69 -21
- package/dist/index.web.js.map +1 -1
- package/package.json +1 -1
- package/packages/dof-bottom-bar/index.vue +5 -4
- package/packages/dof-slider/index.vue +47 -15
- package/packages/utils/index.js +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,18 @@
|
|
|
1
1
|
# 升级日志
|
|
2
2
|
|
|
3
|
+
## 1.3.6
|
|
4
|
+
|
|
5
|
+
- [ ! ] 修复dof-slider-bar组件设置tack-height 会影响button-size问题
|
|
6
|
+
- [ ! ] date: 2023/09/05
|
|
7
|
+
|
|
8
|
+
## 1.3.5
|
|
9
|
+
|
|
10
|
+
- [ ! ] dof-bottom-bar组件新增参数以及修复苹果手机底部安全区问题
|
|
11
|
+
- [ ! ] date: 2023/08/30
|
|
12
|
+
|
|
3
13
|
## 1.3.4
|
|
4
14
|
|
|
5
|
-
- [ ! ] 修复cell组件图标超出苹果和安卓两端表现不一致问题
|
|
15
|
+
- [ ! ] 修复dof-cell组件图标超出苹果和安卓两端表现不一致问题
|
|
6
16
|
- [ ! ] date: 2023/08/29
|
|
7
17
|
|
|
8
18
|
## 1.3.3
|
package/dist/index.native.js
CHANGED
|
@@ -245,7 +245,7 @@ var Utils = {
|
|
|
245
245
|
if (Utils.env.isWeb()) {
|
|
246
246
|
return (typeof window === 'undefined' ? 'undefined' : _typeof2(window)) !== undefined && window.screen && window.screen.width && window.screen.height && (parseInt(window.screen.width, 10) === 375 && parseInt(window.screen.height, 10) === 812 || parseInt(window.screen.width, 10) === 414 && parseInt(window.screen.height, 10) === 896);
|
|
247
247
|
}
|
|
248
|
-
return Utils.env.isIOS() && (deviceHeight === 2436 || deviceHeight === 2688 || deviceHeight === 1792 || deviceHeight === 1624 || deviceHeight === 2532 || deviceHeight === 2340 || deviceHeight === 2778);
|
|
248
|
+
return Utils.env.isIOS() && (weex.config.env.isFullScreen || deviceHeight === 2436 || deviceHeight === 2688 || deviceHeight === 1792 || deviceHeight === 1624 || deviceHeight === 2532 || deviceHeight === 2340 || deviceHeight === 2778);
|
|
249
249
|
},
|
|
250
250
|
|
|
251
251
|
/**
|
|
@@ -15818,7 +15818,10 @@ exports.default = {
|
|
|
15818
15818
|
} },
|
|
15819
15819
|
hasTopBorder: { type: Boolean, default: false },
|
|
15820
15820
|
supportXBar: { type: Boolean, default: true },
|
|
15821
|
-
bottomLine: { type: Boolean, default: true }
|
|
15821
|
+
bottomLine: { type: Boolean, default: true },
|
|
15822
|
+
warpStyle: { type: Object, default: function _default() {
|
|
15823
|
+
return {};
|
|
15824
|
+
} }
|
|
15822
15825
|
},
|
|
15823
15826
|
data: function data() {
|
|
15824
15827
|
return {};
|
|
@@ -15834,9 +15837,9 @@ exports.default = {
|
|
|
15834
15837
|
var tabBarPosition = this.tabBarPosition;
|
|
15835
15838
|
|
|
15836
15839
|
if (tabBarPosition.position === 'fixed') {
|
|
15837
|
-
return { position: 'fixed', left: 0, right: 0, bottom: 0 };
|
|
15840
|
+
return _extends({ position: 'fixed', left: 0, right: 0, bottom: 0 }, this.warpStyle);
|
|
15838
15841
|
} else {
|
|
15839
|
-
return _extends({ left: 0, right: 0 }, tabBarPosition);
|
|
15842
|
+
return _extends({ left: 0, right: 0 }, this.warpStyle, tabBarPosition);
|
|
15840
15843
|
}
|
|
15841
15844
|
}
|
|
15842
15845
|
},
|
|
@@ -32183,6 +32186,8 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
|
|
|
32183
32186
|
//
|
|
32184
32187
|
//
|
|
32185
32188
|
//
|
|
32189
|
+
//
|
|
32190
|
+
//
|
|
32186
32191
|
|
|
32187
32192
|
var _dom = __webpack_require__(10);
|
|
32188
32193
|
|
|
@@ -32277,7 +32282,7 @@ exports.default = {
|
|
|
32277
32282
|
},
|
|
32278
32283
|
|
|
32279
32284
|
// 是否细bar
|
|
32280
|
-
|
|
32285
|
+
isGradientBar: function isGradientBar() {
|
|
32281
32286
|
return this.gradientBarConfig.start && this.gradientBarConfig.end;
|
|
32282
32287
|
},
|
|
32283
32288
|
scope: function scope() {
|
|
@@ -32287,7 +32292,7 @@ exports.default = {
|
|
|
32287
32292
|
return !this.disabled && !this.readonly;
|
|
32288
32293
|
},
|
|
32289
32294
|
_trackHeight: function _trackHeight() {
|
|
32290
|
-
if (this.
|
|
32295
|
+
if (this.isGradientBar || this.trackHeight < this.buttonSize) return this.buttonSize * 1.6;
|
|
32291
32296
|
return this.trackHeight;
|
|
32292
32297
|
},
|
|
32293
32298
|
trackStyle: function trackStyle() {
|
|
@@ -32296,7 +32301,7 @@ exports.default = {
|
|
|
32296
32301
|
backgroundColor: this.trackColor,
|
|
32297
32302
|
borderRadius: this._trackHeight / 2 + 'px'
|
|
32298
32303
|
// 细bar样式
|
|
32299
|
-
};if (this.
|
|
32304
|
+
};if (this.isGradientBar || this.trackHeight < this.buttonSize) {
|
|
32300
32305
|
res.backgroundColor = 'transparent';
|
|
32301
32306
|
}
|
|
32302
32307
|
return res;
|
|
@@ -32331,13 +32336,28 @@ exports.default = {
|
|
|
32331
32336
|
|
|
32332
32337
|
if (this.isBoth) res.left = (Math.max(this.value[0], this.min) - this.min) / this.scope * this.width + 'px';
|
|
32333
32338
|
|
|
32339
|
+
// if (this.barColor) {
|
|
32340
|
+
// res.backgroundColor = this.barColor
|
|
32341
|
+
// }
|
|
32342
|
+
// 细bar样式
|
|
32343
|
+
// if (this.isGradientBar) {
|
|
32344
|
+
res.backgroundColor = 'transparent';
|
|
32345
|
+
// }
|
|
32346
|
+
return res;
|
|
32347
|
+
},
|
|
32348
|
+
smallBarStyle: function smallBarStyle() {
|
|
32349
|
+
var buttonPadding = this.trackHeight > this.buttonSize ? 0 : (this._trackHeight - this.buttonSize) / 2 + 1;
|
|
32350
|
+
var res = {
|
|
32351
|
+
position: 'absolute',
|
|
32352
|
+
top: (this._trackHeight - this.trackHeight) / 2 + 'px',
|
|
32353
|
+
left: buttonPadding + 'px',
|
|
32354
|
+
right: buttonPadding + 'px',
|
|
32355
|
+
height: this.trackHeight,
|
|
32356
|
+
borderRadius: this.trackHeight / 2 + 'px'
|
|
32357
|
+
};
|
|
32334
32358
|
if (this.barColor) {
|
|
32335
32359
|
res.backgroundColor = this.barColor;
|
|
32336
32360
|
}
|
|
32337
|
-
// 细bar样式
|
|
32338
|
-
if (this.isThinBar) {
|
|
32339
|
-
res.backgroundColor = 'transparent';
|
|
32340
|
-
}
|
|
32341
32361
|
return res;
|
|
32342
32362
|
},
|
|
32343
32363
|
buttonStyle: function buttonStyle() {
|
|
@@ -32354,6 +32374,21 @@ exports.default = {
|
|
|
32354
32374
|
var buttonPadding = (this._trackHeight - buttonSize) / 2;
|
|
32355
32375
|
return this.isBoth ? [_extends({}, res, { left: buttonPadding + 'px' }), _extends({}, res, { right: buttonPadding + 'px' })] : [_extends({}, res, { right: buttonPadding + 'px' })];
|
|
32356
32376
|
},
|
|
32377
|
+
lineStyle: function lineStyle() {
|
|
32378
|
+
var buttonPadding = (this._trackHeight - this.buttonSize) / 2 + 1;
|
|
32379
|
+
var res = {
|
|
32380
|
+
position: 'absolute',
|
|
32381
|
+
top: (this._trackHeight - this.trackHeight) / 2 + 'px',
|
|
32382
|
+
left: buttonPadding + 'px',
|
|
32383
|
+
right: buttonPadding + 'px',
|
|
32384
|
+
height: this.trackHeight + 'px',
|
|
32385
|
+
borderRadius: this.trackHeight / 2 + 'px'
|
|
32386
|
+
};
|
|
32387
|
+
if (this.trackColor) {
|
|
32388
|
+
res.backgroundColor = this.trackColor;
|
|
32389
|
+
}
|
|
32390
|
+
return res;
|
|
32391
|
+
},
|
|
32357
32392
|
thinBarStyle: function thinBarStyle() {
|
|
32358
32393
|
var buttonPadding = (this._trackHeight - this.buttonSize) / 2;
|
|
32359
32394
|
var res = {
|
|
@@ -32400,7 +32435,7 @@ exports.default = {
|
|
|
32400
32435
|
return _context.abrupt('return');
|
|
32401
32436
|
|
|
32402
32437
|
case 2:
|
|
32403
|
-
if (_this2.
|
|
32438
|
+
if (_this2.isGradientBar) _this2.isTouching = true;
|
|
32404
32439
|
_this2.touch.start(e);
|
|
32405
32440
|
|
|
32406
32441
|
if (!_this2.isBoth) {
|
|
@@ -37789,7 +37824,6 @@ module.exports = {
|
|
|
37789
37824
|
},
|
|
37790
37825
|
"tab-bar-list": {
|
|
37791
37826
|
"flexDirection": "row",
|
|
37792
|
-
"backgroundColor": "#ffffff",
|
|
37793
37827
|
"paddingTop": "12",
|
|
37794
37828
|
"paddingRight": "10",
|
|
37795
37829
|
"paddingBottom": "16",
|
|
@@ -44828,7 +44862,7 @@ module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c
|
|
|
44828
44862
|
ref: "track",
|
|
44829
44863
|
staticClass: ["dof-slider-track"],
|
|
44830
44864
|
style: _vm.trackStyle
|
|
44831
|
-
}, [(_vm.
|
|
44865
|
+
}, [(_vm.isGradientBar) ? _c('div', {
|
|
44832
44866
|
staticClass: ["dof-slider-thin-bar"],
|
|
44833
44867
|
style: _vm.thinBarStyle
|
|
44834
44868
|
}, [(_vm.gradientBarConfig.mid) ? _c('div', {
|
|
@@ -44849,19 +44883,24 @@ module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c
|
|
|
44849
44883
|
backgroundImage: ("linear-gradient(to right, " + (_vm.gradientBarConfig.start) + ", " + (_vm.gradientBarConfig.end) + ")"),
|
|
44850
44884
|
right: 0 + 'px'
|
|
44851
44885
|
}
|
|
44852
|
-
}) : _vm._e()]) : _vm._e(), _c('div', {
|
|
44886
|
+
}) : _vm._e()]) : _vm._e(), (!_vm.isGradientBar) ? _c('div', {
|
|
44887
|
+
style: _vm.lineStyle
|
|
44888
|
+
}) : _vm._e(), _c('div', {
|
|
44853
44889
|
ref: "bar",
|
|
44854
|
-
class: ['dof-slider-bar'
|
|
44890
|
+
class: ['dof-slider-bar'],
|
|
44855
44891
|
style: _vm.barStyle
|
|
44856
|
-
},
|
|
44892
|
+
}, [(!_vm.isGradientBar) ? _c('div', {
|
|
44893
|
+
class: [_vm.barColor || _vm.isGradientBar ? '' : ("dof-slider-bar--" + (this.theme))],
|
|
44894
|
+
style: _vm.smallBarStyle
|
|
44895
|
+
}) : _vm._e(), _vm._l((_vm.buttonStyle), function(itemStyle, i) {
|
|
44857
44896
|
return _c('div', {
|
|
44858
44897
|
key: i,
|
|
44859
44898
|
class: ['dof-slider-button', _vm.isTouching ? 'dof-slider-button-touching' : ''],
|
|
44860
44899
|
style: itemStyle
|
|
44861
44900
|
})
|
|
44862
|
-
}))]), (_vm.$slots.default) ? _c('div', {
|
|
44901
|
+
})], 2)]), (_vm.$slots.default) ? _c('div', {
|
|
44863
44902
|
staticClass: ["dof-slider-scales"]
|
|
44864
|
-
}, [_vm._t("default")], 2) : _vm._e(), (_vm.
|
|
44903
|
+
}, [_vm._t("default")], 2) : _vm._e(), (_vm.isGradientBar && _vm.disabled) ? _c('div', {
|
|
44865
44904
|
staticClass: ["dof-slider-disabled-mask"],
|
|
44866
44905
|
on: {
|
|
44867
44906
|
"touchstart": function () {}
|