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
48074f2e
Commit
48074f2e
authored
Sep 01, 2017
by
fanzhaobing
Committed by
杨奕
Sep 02, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Slider: add props debounce
parent
a033db42
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-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/zh-CN/slider.md
View file @
48074f2e
...
...
@@ -237,6 +237,7 @@
| range | 是否为范围选择 | boolean | — | false |
| vertical | 是否竖向模式 | boolean | — | false |
| height | Slider 高度,竖向模式时必填 | String | — | — |
| debounce | 输入时的去抖延迟,毫秒,show-input等于true时有效 | number | — | 300 |
### Events
| 事件名称 | 说明 | 回调参数 |
...
...
packages/slider/src/main.vue
View file @
48074f2e
...
...
@@ -11,6 +11,7 @@
:controls=
"showInputControls"
:min=
"min"
:max=
"max"
:debounce=
"debounce"
size=
"small"
>
</el-input-number>
<div
class=
"el-slider__runway"
...
...
@@ -101,6 +102,10 @@
},
height
:
{
type
:
String
},
debounce
:
{
type
:
Number
,
default
:
300
}
},
...
...
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