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