Commit 9ed9336d authored by baiyaaaaa's avatar baiyaaaaa Committed by GitHub

Merge pull request #2314 from Leopoldthecoder/dev

Slider: add show-input-controls, fixed #2304
parents 7f30ad49 ab1c6fc0
...@@ -127,6 +127,7 @@ Set value via a input box. ...@@ -127,6 +127,7 @@ Set value via a input box.
| disabled | whether Slider is disabled | boolean | — | false | | disabled | whether Slider is disabled | boolean | — | false |
| step | step size | number | — | 1 | | step | step size | number | — | 1 |
| show-input | whether to display an input box | boolean | — | false | | 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 | | show-stops | whether to display breakpoints | boolean | — | false |
## Events ## Events
......
...@@ -151,6 +151,7 @@ ...@@ -151,6 +151,7 @@
| disabled | 是否禁用 | boolean | — | false | | disabled | 是否禁用 | boolean | — | false |
| step | 步长 | number | — | 1 | | step | 步长 | number | — | 1 |
| show-input | 是否显示输入框 | boolean | — | false | | show-input | 是否显示输入框 | boolean | — | false |
| show-input-controls | 在显示输入框的情况下,是否显示输入框的控制按钮 | boolean | — | true|
| show-stops | 是否显示间断点 | boolean | — | false | | show-stops | 是否显示间断点 | boolean | — | false |
### Events ### Events
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
ref="input" ref="input"
:step="step" :step="step"
:disabled="disabled" :disabled="disabled"
:controls="showInputControls"
:min="min" :min="min"
:max="max" :max="max"
size="small"> size="small">
...@@ -67,6 +68,10 @@ ...@@ -67,6 +68,10 @@
type: Boolean, type: Boolean,
default: false default: false
}, },
showInputControls: {
type: Boolean,
default: true
},
showStops: { showStops: {
type: Boolean, type: Boolean,
default: false default: false
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment