Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Element
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
林焕东
Element
Commits
9ed9336d
Commit
9ed9336d
authored
Jan 12, 2017
by
baiyaaaaa
Committed by
GitHub
Jan 12, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2314 from Leopoldthecoder/dev
Slider: add show-input-controls, fixed #2304
parents
7f30ad49
ab1c6fc0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
0 deletions
+7
-0
examples/docs/en-US/slider.md
examples/docs/en-US/slider.md
+1
-0
examples/docs/zh-CN/slider.md
examples/docs/zh-CN/slider.md
+1
-0
packages/slider/src/main.vue
packages/slider/src/main.vue
+5
-0
No files found.
examples/docs/en-US/slider.md
View file @
9ed9336d
...
...
@@ -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
...
...
examples/docs/zh-CN/slider.md
View file @
9ed9336d
...
...
@@ -151,6 +151,7 @@
| disabled | 是否禁用 | boolean | — | false |
| step | 步长 | number | — | 1 |
| show-input | 是否显示输入框 | boolean | — | false |
| show-input-controls | 在显示输入框的情况下,是否显示输入框的控制按钮 | boolean | — | true|
| show-stops | 是否显示间断点 | boolean | — | false |
### Events
...
...
packages/slider/src/main.vue
View file @
9ed9336d
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment