dolphin-weex-ui 2.0.0-beta.2 → 2.0.0-beta.4

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
+ ## 1.4.2
4
+
5
+ - [ ! ] 修复dof-slider禁用后背景色显示问题
6
+ - [ ! ] date: 2023/11/10
7
+
8
+ ## 1.4.1
9
+
10
+ - [ ! ] 修复dof-slider-scale组件刻度偶现位置不准确问题
11
+ - [ ! ] date: 2023/11/09
12
+
3
13
  ## 1.4.0
4
14
 
5
15
  - [ ! ] 修复dof-swipe-action组件在scroller标签中iOS手机的滑动问题
@@ -8087,21 +8087,21 @@ var COLMO_BUTTON_STYLE_MAP = exports.COLMO_BUTTON_STYLE_MAP = {
8087
8087
  },
8088
8088
  big: {
8089
8089
  width: '688px',
8090
- height: '80px',
8091
- borderRadius: '0',
8090
+ height: '96px',
8091
+ borderRadius: '0px',
8092
8092
  paddingLeft: '46px',
8093
8093
  paddingRight: '46px'
8094
8094
  },
8095
8095
  medium: {
8096
- width: '128px',
8097
- height: '56px',
8098
- borderRadius: '28px',
8096
+ width: '688px',
8097
+ height: '80px',
8098
+ borderRadius: '0px',
8099
8099
  paddingLeft: '28px',
8100
8100
  paddingRight: '28px'
8101
8101
  },
8102
8102
  small: {
8103
- width: '146px',
8104
- height: '44px',
8103
+ width: '128px',
8104
+ height: '56px',
8105
8105
  borderRadius: '26px',
8106
8106
  paddingLeft: '0px',
8107
8107
  paddingRight: '0px'
@@ -8137,7 +8137,7 @@ var COLMO_TEXT_FONTSIZE_STYLE_MAP = exports.COLMO_TEXT_FONTSIZE_STYLE_MAP = {
8137
8137
  fontSize: '32px'
8138
8138
  },
8139
8139
  medium: {
8140
- fontSize: '24px'
8140
+ fontSize: '32px'
8141
8141
  },
8142
8142
  small: {
8143
8143
  fontSize: '24px'
@@ -33666,6 +33666,11 @@ Object.defineProperty(exports, "__esModule", {
33666
33666
  //
33667
33667
  //
33668
33668
  //
33669
+ //
33670
+ //
33671
+ //
33672
+ //
33673
+ //
33669
33674
 
33670
33675
  exports.default = {
33671
33676
  props: {
@@ -33679,6 +33684,17 @@ exports.default = {
33679
33684
  default: '#8a8a8f'
33680
33685
  }
33681
33686
  },
33687
+ data: function data() {
33688
+ return {
33689
+ isShow: false
33690
+ };
33691
+ },
33692
+
33693
+ watch: {
33694
+ style: function style() {
33695
+ this.isShow = true;
33696
+ }
33697
+ },
33682
33698
  computed: {
33683
33699
  isLast: function isLast() {
33684
33700
  return this.value >= this.$parent.max;
@@ -33688,14 +33704,20 @@ exports.default = {
33688
33704
  },
33689
33705
  style: function style() {
33690
33706
  var style = {
33691
- color: this.color
33707
+ color: this.color,
33708
+ opacity: this.isShow ? 1 : 0
33692
33709
  };
33693
- var left = (this.value - this.$parent.min) / this.$parent.scope * this.$parent.width;
33710
+ var left = (this.value - this.$parent.min) / this.$parent.scope * this.$parent.width + this.$parent._trackHeight / 2;
33694
33711
  style.left = left + 'px';
33712
+
33713
+ if (this.isFirst) {
33714
+ delete style.left;
33715
+ style.left = this.$parent._trackHeight / 2 + 'px';
33716
+ }
33695
33717
  // 防止超出的情况
33696
33718
  if (this.isLast) {
33697
33719
  delete style.left;
33698
- style.right = '0px';
33720
+ style.right = this.$parent._trackHeight / 2 + 'px';
33699
33721
  }
33700
33722
  return style;
33701
33723
  }
@@ -33764,6 +33786,12 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
33764
33786
  //
33765
33787
  //
33766
33788
  //
33789
+ //
33790
+ //
33791
+ //
33792
+ //
33793
+ //
33794
+ //
33767
33795
 
33768
33796
  var _dom = __webpack_require__(12);
33769
33797
 
@@ -33991,6 +34019,9 @@ exports.default = {
33991
34019
  },
33992
34020
  midWidth: function midWidth() {
33993
34021
  return this.width / 2;
34022
+ },
34023
+ disabledStyle: function disabledStyle() {
34024
+ return this.isGradientBar && this.disabled ? { opacity: 0.3 } : { opacity: 1 };
33994
34025
  }
33995
34026
  },
33996
34027
  mounted: function mounted() {
@@ -41439,6 +41470,15 @@ module.exports = {
41439
41470
  "fontSize": "20",
41440
41471
  "color": "#8a8a8f",
41441
41472
  "fontWeight": "400"
41473
+ },
41474
+ "dof-slider-scale--mid": {
41475
+ "transform": "translate(-50%, 0px)"
41476
+ },
41477
+ "dof-slider-scale--first": {
41478
+ "transform": "translate(-50%, 0px)"
41479
+ },
41480
+ "dof-slider-scale--last": {
41481
+ "transform": "translate(50%, 0px)"
41442
41482
  }
41443
41483
  }
41444
41484
 
@@ -41653,19 +41693,22 @@ module.exports = {
41653
41693
  "backgroundColor": "#7c879b"
41654
41694
  },
41655
41695
  "dof-slider-button": {
41656
- "position": "absolute",
41657
- "transitionProperty": "transform",
41658
- "transitionDuration": 300,
41659
- "transitionDelay": 0,
41660
- "transform": "scale(1)"
41696
+ "position": "absolute"
41661
41697
  },
41662
41698
  "@TRANSITION": {
41663
- "dof-slider-button": {
41699
+ "button-scale": {
41664
41700
  "property": "transform",
41665
41701
  "duration": 300,
41666
41702
  "delay": 0
41667
41703
  }
41668
41704
  },
41705
+ "button-scale": {
41706
+ "transitionProperty": "transform",
41707
+ "transitionDuration": 300,
41708
+ "transitionDelay": 0,
41709
+ "transform": "scale(1)",
41710
+ "transform:active": "scale(1.5)"
41711
+ },
41669
41712
  "dof-slider-button-touching": {
41670
41713
  "transform": "scale(1.5)"
41671
41714
  },
@@ -41694,8 +41737,7 @@ module.exports = {
41694
41737
  "top": 0,
41695
41738
  "left": 0,
41696
41739
  "right": 0,
41697
- "bottom": 0,
41698
- "backgroundColor": "rgba(0,0,0,0.5)"
41740
+ "bottom": 0
41699
41741
  }
41700
41742
  }
41701
41743
 
@@ -42004,14 +42046,12 @@ module.exports = {
42004
42046
  "width": "40",
42005
42047
  "height": "6",
42006
42048
  "borderRadius": "3",
42007
- "marginTop": "-10",
42008
- "backgroundColor": "rgba(0,0,0,0)"
42049
+ "marginTop": "-10"
42009
42050
  },
42010
42051
  "border-bottom-line-secondary": {
42011
42052
  "height": "4",
42012
42053
  "borderRadius": "3",
42013
- "marginTop": "-2",
42014
- "backgroundColor": "rgba(0,0,0,0)"
42054
+ "marginTop": "-2"
42015
42055
  },
42016
42056
  "thirdTabPanel": {
42017
42057
  "height": "128"
@@ -46650,7 +46690,12 @@ module.exports.render._withStripped = true
46650
46690
 
46651
46691
  module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
46652
46692
  return _c('text', {
46653
- class: ['dof-slider-scale', !_vm.isFirst && !_vm.isLast && 'dof-slider-scale--mid', _vm.isLast && "dof-slider-scale--last"],
46693
+ class: [
46694
+ 'dof-slider-scale',
46695
+ !_vm.isFirst && !_vm.isLast && 'dof-slider-scale--mid',
46696
+ _vm.isFirst && "dof-slider-scale--first",
46697
+ _vm.isLast && "dof-slider-scale--last"
46698
+ ],
46654
46699
  style: _vm.style
46655
46700
  }, [_vm._t("default")], 2)
46656
46701
  },staticRenderFns: []}
@@ -46902,7 +46947,8 @@ module.exports.render._withStripped = true
46902
46947
 
46903
46948
  module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
46904
46949
  return _c('div', {
46905
- staticClass: ["dof-slider"],
46950
+ class: ['dof-slider'],
46951
+ style: _vm.disabledStyle,
46906
46952
  on: {
46907
46953
  "touchstart": _vm.onTouchStart,
46908
46954
  "horizontalpan": _vm.onTouchMove,
@@ -46946,7 +46992,7 @@ module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c
46946
46992
  }) : _vm._e(), _vm._l((_vm.buttonStyle), function(itemStyle, i) {
46947
46993
  return _c('div', {
46948
46994
  key: i,
46949
- class: ['dof-slider-button', _vm.isTouching ? 'dof-slider-button-touching' : ''],
46995
+ class: ['dof-slider-button', _vm.isGradientBar ? 'button-scale' : ''],
46950
46996
  style: itemStyle
46951
46997
  })
46952
46998
  })], 2)]), (_vm.$slots.default) ? _c('div', {