[improvement] Slider: min/max can set any value (#3566)

This commit is contained in:
neverland
2019-06-20 10:42:56 +08:00
committed by GitHub
parent 70efdc22cf
commit 010fcd68b7
5 changed files with 20 additions and 16 deletions

View File

@@ -10,8 +10,8 @@
<demo-block :title="$t('title2')">
<van-slider
v-model="value2"
:min="10"
:max="90"
:min="-50"
:max="50"
@change="onChange"
/>
</demo-block>
@@ -97,7 +97,7 @@ export default {
data() {
return {
value1: 50,
value2: 50,
value2: 0,
value3: 50,
value4: 50,
value5: 50,