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 3 <Input-number
4 4 v-if="!range && showInput"
5 5 :min="min"
  6 + :size="inputSize"
6 7 :max="max"
7 8 :step="step"
8 9 :value="exportValue[0]"
... ... @@ -120,6 +121,13 @@
120 121 type: Boolean,
121 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 131 showStops: {
124 132 type: Boolean,
125 133 default: false
... ...