diff --git a/src/components/slider/slider.vue b/src/components/slider/slider.vue
index 03e508e..ca009a9 100644
--- a/src/components/slider/slider.vue
+++ b/src/components/slider/slider.vue
@@ -8,17 +8,17 @@
:value="value"
:disabled="disabled"
@on-change="handleInputChange">
-
+
-
+
-
+
@@ -26,7 +26,7 @@
:class="[prefixCls + '-button-wrap']"
:style="{left: secondPosition + '%'}"
@mousedown="onSecondButtonDown">
-
+
@@ -36,7 +36,7 @@
:class="[prefixCls + '-button-wrap']"
:style="{left: singlePosition + '%'}"
@mousedown="onSingleButtonDown">
-
+
@@ -163,15 +163,6 @@
return style;
},
stops() {
-// let stopCount = (this.max - this.value) / this.step;
-// let result = [];
-// let currentLeft = parseFloat(this.singlePosition);
-// let stepWidth = 100 * this.step / (this.max - this.min);
-// for (let i = 1; i < stopCount; i++) {
-// result.push(currentLeft + i * stepWidth);
-// }
-// return result;
-
let stopCount = (this.max - this.min) / this.step;
let result = [];
let stepWidth = 100 * this.step / (this.max - this.min);
diff --git a/test/routers/slider.vue b/test/routers/slider.vue
index 04c88eb..6e5d97c 100644
--- a/test/routers/slider.vue
+++ b/test/routers/slider.vue
@@ -1,7 +1,8 @@
{{ value }}
-
+
+
@@ -19,10 +20,11 @@
},
methods: {
format (val) {
+ return null;
return `进度:${val}%`
},
change (data) {
- console.log(data)
+// console.log(data)
}
}
}
--
libgit2 0.21.4