dolphin-weex-ui 1.3.5 → 1.3.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 +10 -0
- package/dist/index.native.js +51 -20
- package/dist/index.native.js.map +1 -1
- package/dist/index.web.js +62 -17
- package/dist/index.web.js.map +1 -1
- package/package.json +1 -1
- package/packages/dof-cell/index.vue +4 -4
- package/packages/dof-slider/index.vue +47 -15
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# 升级日志
|
|
2
2
|
|
|
3
|
+
## 1.3.7
|
|
4
|
+
|
|
5
|
+
- [ ! ] 修复dof-cell组件左侧图片css样式导致的闪动
|
|
6
|
+
- [ ! ] date: 2023/09/07
|
|
7
|
+
|
|
8
|
+
## 1.3.6
|
|
9
|
+
|
|
10
|
+
- [ ! ] 修复dof-slider-bar组件设置tack-height 会影响button-size问题
|
|
11
|
+
- [ ! ] date: 2023/09/05
|
|
12
|
+
|
|
3
13
|
## 1.3.5
|
|
4
14
|
|
|
5
15
|
- [ ! ] dof-bottom-bar组件新增参数以及修复苹果手机底部安全区问题
|
package/dist/index.native.js
CHANGED
|
@@ -32186,6 +32186,8 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
|
|
|
32186
32186
|
//
|
|
32187
32187
|
//
|
|
32188
32188
|
//
|
|
32189
|
+
//
|
|
32190
|
+
//
|
|
32189
32191
|
|
|
32190
32192
|
var _dom = __webpack_require__(10);
|
|
32191
32193
|
|
|
@@ -32280,7 +32282,7 @@ exports.default = {
|
|
|
32280
32282
|
},
|
|
32281
32283
|
|
|
32282
32284
|
// 是否细bar
|
|
32283
|
-
|
|
32285
|
+
isGradientBar: function isGradientBar() {
|
|
32284
32286
|
return this.gradientBarConfig.start && this.gradientBarConfig.end;
|
|
32285
32287
|
},
|
|
32286
32288
|
scope: function scope() {
|
|
@@ -32290,7 +32292,7 @@ exports.default = {
|
|
|
32290
32292
|
return !this.disabled && !this.readonly;
|
|
32291
32293
|
},
|
|
32292
32294
|
_trackHeight: function _trackHeight() {
|
|
32293
|
-
if (this.
|
|
32295
|
+
if (this.isGradientBar || this.trackHeight < this.buttonSize) return this.buttonSize * 1.6;
|
|
32294
32296
|
return this.trackHeight;
|
|
32295
32297
|
},
|
|
32296
32298
|
trackStyle: function trackStyle() {
|
|
@@ -32299,7 +32301,7 @@ exports.default = {
|
|
|
32299
32301
|
backgroundColor: this.trackColor,
|
|
32300
32302
|
borderRadius: this._trackHeight / 2 + 'px'
|
|
32301
32303
|
// 细bar样式
|
|
32302
|
-
};if (this.
|
|
32304
|
+
};if (this.isGradientBar || this.trackHeight < this.buttonSize) {
|
|
32303
32305
|
res.backgroundColor = 'transparent';
|
|
32304
32306
|
}
|
|
32305
32307
|
return res;
|
|
@@ -32334,13 +32336,28 @@ exports.default = {
|
|
|
32334
32336
|
|
|
32335
32337
|
if (this.isBoth) res.left = (Math.max(this.value[0], this.min) - this.min) / this.scope * this.width + 'px';
|
|
32336
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
|
+
};
|
|
32337
32358
|
if (this.barColor) {
|
|
32338
32359
|
res.backgroundColor = this.barColor;
|
|
32339
32360
|
}
|
|
32340
|
-
// 细bar样式
|
|
32341
|
-
if (this.isThinBar) {
|
|
32342
|
-
res.backgroundColor = 'transparent';
|
|
32343
|
-
}
|
|
32344
32361
|
return res;
|
|
32345
32362
|
},
|
|
32346
32363
|
buttonStyle: function buttonStyle() {
|
|
@@ -32357,6 +32374,21 @@ exports.default = {
|
|
|
32357
32374
|
var buttonPadding = (this._trackHeight - buttonSize) / 2;
|
|
32358
32375
|
return this.isBoth ? [_extends({}, res, { left: buttonPadding + 'px' }), _extends({}, res, { right: buttonPadding + 'px' })] : [_extends({}, res, { right: buttonPadding + 'px' })];
|
|
32359
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
|
+
},
|
|
32360
32392
|
thinBarStyle: function thinBarStyle() {
|
|
32361
32393
|
var buttonPadding = (this._trackHeight - this.buttonSize) / 2;
|
|
32362
32394
|
var res = {
|
|
@@ -32403,7 +32435,7 @@ exports.default = {
|
|
|
32403
32435
|
return _context.abrupt('return');
|
|
32404
32436
|
|
|
32405
32437
|
case 2:
|
|
32406
|
-
if (_this2.
|
|
32438
|
+
if (_this2.isGradientBar) _this2.isTouching = true;
|
|
32407
32439
|
_this2.touch.start(e);
|
|
32408
32440
|
|
|
32409
32441
|
if (!_this2.isBoth) {
|
|
@@ -38084,8 +38116,6 @@ module.exports = {
|
|
|
38084
38116
|
},
|
|
38085
38117
|
"circle-bg": {
|
|
38086
38118
|
"marginLeft": "32",
|
|
38087
|
-
"width": "96",
|
|
38088
|
-
"height": "96",
|
|
38089
38119
|
"display": "flex",
|
|
38090
38120
|
"alignItems": "center",
|
|
38091
38121
|
"justifyContent": "center",
|
|
@@ -38127,10 +38157,6 @@ module.exports = {
|
|
|
38127
38157
|
"fontSize": "24",
|
|
38128
38158
|
"color": "#ffffff"
|
|
38129
38159
|
},
|
|
38130
|
-
"left-img": {
|
|
38131
|
-
"width": "64",
|
|
38132
|
-
"height": "64"
|
|
38133
|
-
},
|
|
38134
38160
|
"main-container": {
|
|
38135
38161
|
"flex": 1,
|
|
38136
38162
|
"flexDirection": "row",
|
|
@@ -44830,7 +44856,7 @@ module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c
|
|
|
44830
44856
|
ref: "track",
|
|
44831
44857
|
staticClass: ["dof-slider-track"],
|
|
44832
44858
|
style: _vm.trackStyle
|
|
44833
|
-
}, [(_vm.
|
|
44859
|
+
}, [(_vm.isGradientBar) ? _c('div', {
|
|
44834
44860
|
staticClass: ["dof-slider-thin-bar"],
|
|
44835
44861
|
style: _vm.thinBarStyle
|
|
44836
44862
|
}, [(_vm.gradientBarConfig.mid) ? _c('div', {
|
|
@@ -44851,19 +44877,24 @@ module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c
|
|
|
44851
44877
|
backgroundImage: ("linear-gradient(to right, " + (_vm.gradientBarConfig.start) + ", " + (_vm.gradientBarConfig.end) + ")"),
|
|
44852
44878
|
right: 0 + 'px'
|
|
44853
44879
|
}
|
|
44854
|
-
}) : _vm._e()]) : _vm._e(), _c('div', {
|
|
44880
|
+
}) : _vm._e()]) : _vm._e(), (!_vm.isGradientBar) ? _c('div', {
|
|
44881
|
+
style: _vm.lineStyle
|
|
44882
|
+
}) : _vm._e(), _c('div', {
|
|
44855
44883
|
ref: "bar",
|
|
44856
|
-
class: ['dof-slider-bar'
|
|
44884
|
+
class: ['dof-slider-bar'],
|
|
44857
44885
|
style: _vm.barStyle
|
|
44858
|
-
},
|
|
44886
|
+
}, [(!_vm.isGradientBar) ? _c('div', {
|
|
44887
|
+
class: [_vm.barColor || _vm.isGradientBar ? '' : ("dof-slider-bar--" + (this.theme))],
|
|
44888
|
+
style: _vm.smallBarStyle
|
|
44889
|
+
}) : _vm._e(), _vm._l((_vm.buttonStyle), function(itemStyle, i) {
|
|
44859
44890
|
return _c('div', {
|
|
44860
44891
|
key: i,
|
|
44861
44892
|
class: ['dof-slider-button', _vm.isTouching ? 'dof-slider-button-touching' : ''],
|
|
44862
44893
|
style: itemStyle
|
|
44863
44894
|
})
|
|
44864
|
-
}))]), (_vm.$slots.default) ? _c('div', {
|
|
44895
|
+
})], 2)]), (_vm.$slots.default) ? _c('div', {
|
|
44865
44896
|
staticClass: ["dof-slider-scales"]
|
|
44866
|
-
}, [_vm._t("default")], 2) : _vm._e(), (_vm.
|
|
44897
|
+
}, [_vm._t("default")], 2) : _vm._e(), (_vm.isGradientBar && _vm.disabled) ? _c('div', {
|
|
44867
44898
|
staticClass: ["dof-slider-disabled-mask"],
|
|
44868
44899
|
on: {
|
|
44869
44900
|
"touchstart": function () {}
|