add props input-size
表单布局中包含slider时,input 样式无法统一。或者考虑 允许 `showInput` 的值为 `String`。控制input的size。
This commit is contained in:
parent
0e6b84f379
commit
f672c42ba9
1 changed files with 8 additions and 0 deletions
|
@ -3,6 +3,7 @@
|
||||||
<Input-number
|
<Input-number
|
||||||
v-if="!range && showInput"
|
v-if="!range && showInput"
|
||||||
:min="min"
|
:min="min"
|
||||||
|
:size="inputSize"
|
||||||
:max="max"
|
:max="max"
|
||||||
:step="step"
|
:step="step"
|
||||||
:value="exportValue[0]"
|
:value="exportValue[0]"
|
||||||
|
@ -120,6 +121,13 @@
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false
|
default: false
|
||||||
},
|
},
|
||||||
|
inputSize: {
|
||||||
|
type: String,
|
||||||
|
default: 'default',
|
||||||
|
validator (value) {
|
||||||
|
return oneOf(value, ['small', 'large', 'default']);
|
||||||
|
}
|
||||||
|
},
|
||||||
showStops: {
|
showStops: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false
|
default: false
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue