Slider: add show-input-controls, fixed #2304

pull/2314/head
Leopoldthecoder 2017-01-10 10:48:09 +08:00
parent 48996c6658
commit ab1c6fc0cc
3 changed files with 7 additions and 0 deletions

View File

@ -127,6 +127,7 @@ Set value via a input box.
| disabled | whether Slider is disabled | boolean | — | false |
| step | step size | number | — | 1 |
| show-input | whether to display an input box | boolean | — | false |
| show-input-controls | whether to display control buttons when `show-input` is true | boolean | — | true |
| show-stops | whether to display breakpoints | boolean | — | false |
## Events

View File

@ -151,6 +151,7 @@
| disabled | 是否禁用 | boolean | — | false |
| step | 步长 | number | — | 1 |
| show-input | 是否显示输入框 | boolean | — | false |
| show-input-controls | 在显示输入框的情况下,是否显示输入框的控制按钮 | boolean | — | true|
| show-stops | 是否显示间断点 | boolean | — | false |
### Events

View File

@ -8,6 +8,7 @@
ref="input"
:step="step"
:disabled="disabled"
:controls="showInputControls"
:min="min"
:max="max"
size="small">
@ -67,6 +68,10 @@
type: Boolean,
default: false
},
showInputControls: {
type: Boolean,
default: true
},
showStops: {
type: Boolean,
default: false