Commit 1a6046f005d1d3570d7b6d0580348e388fc752ee

Authored by Aresn
Committed by GitHub
2 parents 0e6b84f3 f672c42b

Merge pull request #3301 from vace/patch-2

add props input-size
Showing 1 changed file with 8 additions and 0 deletions   Show diff stats
src/components/slider/slider.vue
@@ -3,6 +3,7 @@ @@ -3,6 +3,7 @@
3 <Input-number 3 <Input-number
4 v-if="!range && showInput" 4 v-if="!range && showInput"
5 :min="min" 5 :min="min"
  6 + :size="inputSize"
6 :max="max" 7 :max="max"
7 :step="step" 8 :step="step"
8 :value="exportValue[0]" 9 :value="exportValue[0]"
@@ -120,6 +121,13 @@ @@ -120,6 +121,13 @@
120 type: Boolean, 121 type: Boolean,
121 default: false 122 default: false
122 }, 123 },
  124 + inputSize: {
  125 + type: String,
  126 + default: 'default',
  127 + validator (value) {
  128 + return oneOf(value, ['small', 'large', 'default']);
  129 + }
  130 + },
123 showStops: { 131 showStops: {
124 type: Boolean, 132 type: Boolean,
125 default: false 133 default: false