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
fef0334e
Commit
fef0334e
authored
Mar 18, 2017
by
杨奕
Committed by
baiyaaaaa
Mar 18, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
misc updates (#3583)
parent
c31f19a4
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
13 deletions
+22
-13
examples/docs/zh-CN/slider.md
examples/docs/zh-CN/slider.md
+20
-13
packages/theme-default/src/autocomplete.css
packages/theme-default/src/autocomplete.css
+1
-0
packages/theme-default/src/checkbox.css
packages/theme-default/src/checkbox.css
+1
-0
No files found.
examples/docs/zh-CN/slider.md
View file @
fef0334e
...
@@ -4,11 +4,12 @@
...
@@ -4,11 +4,12 @@
return {
return {
value1: 0,
value1: 0,
value2: 50,
value2: 50,
value3:
42
,
value3:
36
,
value4:
0
,
value4:
42
,
value5: 0,
value5: 0,
value6: 0,
value6: 0,
value7:
[
4, 8
]
value7: 0,
value8:
[
4, 8
]
};
};
}
}
}
}
...
@@ -60,9 +61,13 @@
...
@@ -60,9 +61,13 @@
<span
class=
"demonstration"
>
自定义初始值
</span>
<span
class=
"demonstration"
>
自定义初始值
</span>
<el-slider
v-model=
"value2"
></el-slider>
<el-slider
v-model=
"value2"
></el-slider>
</div>
</div>
<div
class=
"block"
>
<span
class=
"demonstration"
>
隐藏 Tooltip
</span>
<el-slider
v-model=
"value3"
:show-tooltip=
"false"
></el-slider>
</div>
<div
class=
"block"
>
<div
class=
"block"
>
<span
class=
"demonstration"
>
禁用
</span>
<span
class=
"demonstration"
>
禁用
</span>
<el-slider
v-model=
"value
3
"
disabled
></el-slider>
<el-slider
v-model=
"value
4
"
disabled
></el-slider>
</div>
</div>
</template>
</template>
...
@@ -72,7 +77,8 @@
...
@@ -72,7 +77,8 @@
return
{
return
{
value1
:
0
,
value1
:
0
,
value2
:
50
,
value2
:
50
,
value3
:
42
value3
:
36
,
value4
:
42
}
}
}
}
}
}
...
@@ -90,14 +96,14 @@
...
@@ -90,14 +96,14 @@
<div
class=
"block"
>
<div
class=
"block"
>
<span
class=
"demonstration"
>
不显示间断点
</span>
<span
class=
"demonstration"
>
不显示间断点
</span>
<el-slider
<el-slider
v-model=
"value
4
"
v-model=
"value
5
"
:step=
"10"
>
:step=
"10"
>
</el-slider>
</el-slider>
</div>
</div>
<div
class=
"block"
>
<div
class=
"block"
>
<span
class=
"demonstration"
>
显示间断点
</span>
<span
class=
"demonstration"
>
显示间断点
</span>
<el-slider
<el-slider
v-model=
"value
5
"
v-model=
"value
6
"
:step=
"10"
:step=
"10"
show-stops
>
show-stops
>
</el-slider>
</el-slider>
...
@@ -108,8 +114,8 @@
...
@@ -108,8 +114,8 @@
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
value
4
:
0
,
value
5
:
0
,
value
5
:
0
value
6
:
0
}
}
}
}
}
}
...
@@ -126,7 +132,7 @@
...
@@ -126,7 +132,7 @@
<template>
<template>
<div
class=
"block"
>
<div
class=
"block"
>
<el-slider
<el-slider
v-model=
"value
6
"
v-model=
"value
7
"
show-input
>
show-input
>
</el-slider>
</el-slider>
</div>
</div>
...
@@ -136,7 +142,7 @@
...
@@ -136,7 +142,7 @@
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
value
6
:
0
value
7
:
0
}
}
}
}
}
}
...
@@ -153,7 +159,7 @@
...
@@ -153,7 +159,7 @@
<template>
<template>
<div
class=
"block"
>
<div
class=
"block"
>
<el-slider
<el-slider
v-model=
"value
7
"
v-model=
"value
8
"
range
range
show-stops
show-stops
:max=
"10"
>
:max=
"10"
>
...
@@ -165,7 +171,7 @@
...
@@ -165,7 +171,7 @@
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
value
7
:
[
4
,
8
]
value
8
:
[
4
,
8
]
}
}
}
}
}
}
...
@@ -183,6 +189,7 @@
...
@@ -183,6 +189,7 @@
| show-input | 是否显示输入框,仅在非范围选择时有效 | boolean | — | false |
| show-input | 是否显示输入框,仅在非范围选择时有效 | boolean | — | false |
| show-input-controls | 在显示输入框的情况下,是否显示输入框的控制按钮 | boolean | — | true|
| show-input-controls | 在显示输入框的情况下,是否显示输入框的控制按钮 | boolean | — | true|
| show-stops | 是否显示间断点 | boolean | — | false |
| show-stops | 是否显示间断点 | boolean | — | false |
| show-tooltip | 是否显示 tooltip | boolean | — | true |
| range | 是否为范围选择 | boolean | — | false |
| range | 是否为范围选择 | boolean | — | false |
### Events
### Events
...
...
packages/theme-default/src/autocomplete.css
View file @
fef0334e
@charset
"UTF-8"
;
@charset
"UTF-8"
;
@import
"./input.css"
;
@import
"./input.css"
;
@import
"./common/var.css"
;
@import
"./common/var.css"
;
@import
"./scrollbar.css"
;
@component-namespace
el
{
@component-namespace
el
{
@b
autocomplete
{
@b
autocomplete
{
...
...
packages/theme-default/src/checkbox.css
View file @
fef0334e
...
@@ -134,6 +134,7 @@
...
@@ -134,6 +134,7 @@
outline
:
none
;
outline
:
none
;
position
:
absolute
;
position
:
absolute
;
margin
:
0
;
margin
:
0
;
visibility
:
hidden
;
left
:
-999px
;
left
:
-999px
;
}
}
...
...
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