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
1238dbf9
Commit
1238dbf9
authored
Mar 14, 2018
by
杨奕
Committed by
GitHub
Mar 14, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Slider: add input-size (#10154)
parent
2d125197
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
25 additions
and
2 deletions
+25
-2
examples/docs/en-US/slider.md
examples/docs/en-US/slider.md
+1
-0
examples/docs/es/slider.md
examples/docs/es/slider.md
+1
-0
examples/docs/zh-CN/slider.md
examples/docs/zh-CN/slider.md
+2
-1
packages/slider/src/main.vue
packages/slider/src/main.vue
+5
-1
packages/theme-chalk/src/slider.scss
packages/theme-chalk/src/slider.scss
+13
-0
types/slider.d.ts
types/slider.d.ts
+3
-0
No files found.
examples/docs/en-US/slider.md
View file @
1238dbf9
...
...
@@ -234,6 +234,7 @@ Selecting a range of values is supported.
| step | step size | number | — | 1 |
| show-input | whether to display an input box, works when
`range`
is false | boolean | — | false |
| show-input-controls | whether to display control buttons when
`show-input`
is true | boolean | — | true |
| input-size | size of the input box | string | large / medium / small / mini | small |
| show-stops | whether to display breakpoints | boolean | — | false |
| show-tooltip | whether to display tooltip value | boolean | — | true |
| format-tooltip | format to display tooltip value | function(value) | — | — |
...
...
examples/docs/es/slider.md
View file @
1238dbf9
...
...
@@ -236,6 +236,7 @@ Se soporta la selección de un rango de valores.
| step | tamaño del paso | number | — | 1 |
| show-input | Si se muestra el input, trabaja cuando
`range`
es false | boolean | — | false |
| show-input-controls | si se muestran los botones de control cuando
`show-input`
es true | boolean | — | true |
| input-size | size of the input box | string | large / medium / small / mini | small |
| show-stops | si se muestran los puntos de ruptura (breakpoints) | boolean | — | false |
| show-tooltip | si se muestra el valor en un tooltip | boolean | — | true |
| format-tooltip | formato para mostrar el valor del tooltip | function(value) | — | — |
...
...
examples/docs/zh-CN/slider.md
View file @
1238dbf9
...
...
@@ -230,7 +230,8 @@
| disabled | 是否禁用 | boolean | — | false |
| step | 步长 | number | — | 1 |
| show-input | 是否显示输入框,仅在非范围选择时有效 | boolean | — | false |
| show-input-controls | 在显示输入框的情况下,是否显示输入框的控制按钮 | boolean | — | true|
| show-input-controls | 在显示输入框的情况下,是否显示输入框的控制按钮 | boolean | — | true |
| input-size | 输入框的尺寸 | string | large / medium / small / mini | small |
| show-stops | 是否显示间断点 | boolean | — | false |
| show-tooltip | 是否显示 tooltip | boolean | — | true |
| format-tooltip | 格式化 tooltip message | function(value) | — | — |
...
...
packages/slider/src/main.vue
View file @
1238dbf9
...
...
@@ -19,7 +19,7 @@
:min=
"min"
:max=
"max"
:debounce=
"debounce"
size=
"small
"
>
:size=
"inputSize
"
>
</el-input-number>
<div
class=
"el-slider__runway"
:class=
"
{ 'show-input': showInput, 'disabled': sliderDisabled }"
...
...
@@ -94,6 +94,10 @@
type
:
Boolean
,
default
:
true
},
inputSize
:
{
type
:
String
,
default
:
'
small
'
},
showStops
:
{
type
:
Boolean
,
default
:
false
...
...
packages/theme-chalk/src/slider.scss
View file @
1238dbf9
...
...
@@ -66,6 +66,19 @@
@include
e
(
input
)
{
float
:
right
;
margin-top
:
3px
;
width
:
130px
;
&
.el-input-number--mini
{
margin-top
:
5px
;
}
&
.el-input-number--medium
{
margin-top
:
0
;
}
&
.el-input-number--large
{
margin-top
:
-2px
;
}
}
@include
e
(
bar
)
{
...
...
types/slider.d.ts
View file @
1238dbf9
...
...
@@ -36,6 +36,9 @@ export declare class ElSlider extends ElementUIComponent {
/** Whether to display control buttons when show-input is true */
showInputControls
:
boolean
/** Size of the input box */
inputSize
:
string
/** Whether to display breakpoints */
showStops
:
boolean
...
...
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