dolphin-weex-ui 2.3.4 → 2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dolphin-weex-ui",
3
- "version": "2.3.4",
3
+ "version": "2.3.6",
4
4
  "description": "inteligense cross platform frame",
5
5
  "main": "index.js",
6
6
  "directories": {
@@ -160,7 +160,8 @@ export default {
160
160
  width: this.width + 'px',
161
161
  backgroundColor: this.maskBgColor,
162
162
  height: this.height + 'px',
163
- borderRadius: this.borderRadius + 'px'
163
+ borderRadius: this.borderRadius + 'px',
164
+ overflow: 'hidden',
164
165
  // backgroundImage: "../../assets/img/image/activity.png",
165
166
  // backgroundRepeat: "no-repeat",
166
167
  }
@@ -21,7 +21,7 @@
21
21
  class="dof-slider-thin-bar-right"
22
22
  :style="{
23
23
  backgroundImage: `linear-gradient(to right, ${_gradientBarConfig.mid}, ${_gradientBarConfig.end})`,
24
- width: midWidth + _buttonSize / 2 + 'px'
24
+ width: midWidth + _buttonSize / 2 - 1 + 'px'
25
25
  }"
26
26
  ></div>
27
27
  <div
@@ -29,7 +29,7 @@
29
29
  v-if="!_gradientBarConfig.mid"
30
30
  :style="{
31
31
  backgroundImage: `linear-gradient(to right, ${_gradientBarConfig.start}, ${_gradientBarConfig.end})`,
32
- right: 0 + 'px'
32
+ right: 1 + 'px'
33
33
  }"
34
34
  ></div>
35
35
  </div>
@@ -55,7 +55,8 @@ export default {
55
55
  opacity: this.isShow ? 1 : 0
56
56
  }
57
57
  const p = this.$parent
58
- const left = ((this.value - p.min) / p.scope) * p.width + p._trackHeight / 2
58
+ let left = ((this.value - p.min) / p.scope) * p.width + p._trackHeight / 2
59
+ if (p.isGradientBar) left = left + 4.5 - this.elWidth / 2
59
60
  style.left = `${left}px`
60
61
 
61
62
  // 防止超出的情况
@@ -99,7 +100,7 @@ export default {
99
100
  white-space: nowrap;
100
101
  font-family: PingFangSC-Regular;
101
102
  font-size: 20px;
102
- color: #8E969B;
103
+ color: #8e969b;
103
104
  font-weight: 400;
104
105
  }
105
106