add props input-size

表单布局中包含slider时,input 样式无法统一。或者考虑 允许 `showInput` 的值为 `String`。控制input的size。
This commit is contained in:
Vace 2018-04-04 10:48:54 +08:00 committed by GitHub
parent 0e6b84f379
commit f672c42ba9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,6 +3,7 @@
<Input-number
v-if="!range && showInput"
:min="min"
:size="inputSize"
:max="max"
:step="step"
:value="exportValue[0]"
@ -120,6 +121,13 @@
type: Boolean,
default: false
},
inputSize: {
type: String,
default: 'default',
validator (value) {
return oneOf(value, ['small', 'large', 'default']);
}
},
showStops: {
type: Boolean,
default: false