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
ea3f87f6
Commit
ea3f87f6
authored
Sep 12, 2016
by
Leopoldthecoder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update popover/tooltip docs
parent
ae057403
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
19 additions
and
15 deletions
+19
-15
CHANGELOG.md
CHANGELOG.md
+3
-0
examples/docs/input.md
examples/docs/input.md
+1
-1
examples/docs/popover.md
examples/docs/popover.md
+1
-1
examples/docs/select.md
examples/docs/select.md
+7
-0
examples/docs/tooltip.md
examples/docs/tooltip.md
+3
-3
packages/select/src/select.vue
packages/select/src/select.vue
+1
-1
packages/theme-default/src/select.css
packages/theme-default/src/select.css
+1
-8
packages/theme-default/src/slider.css
packages/theme-default/src/slider.css
+2
-1
No files found.
CHANGELOG.md
View file @
ea3f87f6
...
...
@@ -7,6 +7,9 @@
-
修复 Select 多选时选项变为空数组后 placeholder 不出现的问题
-
修复 TimePicker 时间选择可滚动
#### 非兼容性更新
-
Select 组件样式的
`display`
属性默认值修改为
`block`
### 1.0.0-rc.3
*2016-09-09*
...
...
examples/docs/input.md
View file @
ea3f87f6
...
...
@@ -605,7 +605,7 @@
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
|------------- |---------------- |---------------- |---------------------- |-------- |
| type | 同原生的 input 的 type 属性,如果为
textarea则显示为
extarea | string | — | — |
| type | 同原生的 input 的 type 属性,如果为
textarea 则显示为 t
extarea | string | — | — |
| value | 绑定值 | string, number | — | — |
| maxlength | 最大输入长度 | number | — | — |
| minlength | 最小输入长度 | number | — | — |
...
...
examples/docs/popover.md
View file @
ea3f87f6
...
...
@@ -153,7 +153,7 @@ Popover 的属性与 Tooltip 很类似,它们都是基于`Vue-popper`开发的
### 嵌套信息
嵌套表格的例子:
可以在 Popover 中嵌套多种类型信息,以下为嵌套表格的例子。
:::demo 利用分发取代
`content`
属性
```
html
...
...
examples/docs/select.md
View file @
ea3f87f6
...
...
@@ -115,6 +115,13 @@
};
</script>
<style>
.demo-select .el-select {
display: inline-block;
width: 240px;
}
</style>
## Select 选择器
当选项过多时,使用下拉菜单展示并选择内容。
...
...
examples/docs/tooltip.md
View file @
ea3f87f6
...
...
@@ -9,11 +9,11 @@
</script>
## Tooltips 文字提示
### 基础用法
常用于展示鼠标 hover 时的提示信息。
Tooltip 组件常用于展示鼠标 hover 时的提示信息,在这里我们提供9种不同的展示方式。
### 基础用法
下面是完整的九个示例,可以通过该示例来理解,选择你要的效果:
在这里我们提供 9 种不同方向的展示方式,可以通过以下完整示例来理解,选择你要的效果。
:::demo 使用
`content`
属性来决定
`hover`
时的提示信息。由
`placement`
属性决定展示效果:
`placement`
属性值为:
`方向-箭头方位`
;四个方向:
`top`
、
`left`
、
`right`
、
`bottom`
;三种箭头方位:
`start`
,
`end`
,默认为空。如
`top center`
即
`placement="top"`
,
`left top`
即
`placement="left-end"`
。
...
...
packages/select/src/select.vue
View file @
ea3f87f6
...
...
@@ -154,7 +154,7 @@
selected
:
{},
isSelect
:
true
,
inputLength
:
20
,
inputWidth
:
18
0
,
inputWidth
:
0
,
valueChangeBySelected
:
false
,
cachedPlaceHolder
:
''
,
optionsCount
:
0
,
...
...
packages/theme-default/src/select.css
View file @
ea3f87f6
...
...
@@ -9,7 +9,7 @@
@component-namespace
el
{
@b
select
{
display
:
inline-
block
;
display
:
block
;
position
:
relative
;
@when
small
{
...
...
@@ -47,9 +47,6 @@
}
&
.el-input
{
width
:
180px
;
display
:
inline-block
;
&
.el-input__icon
{
color
:
#c0ccda
;
font-size
:
12px
;
...
...
@@ -99,10 +96,6 @@
}
@when
multiple
{
&
.el-input
{
width
:
220px
;
}
&
.el-select-dropdown__item.selected
{
color
:
#20A0FF
;
background-color
:
#fff
;
...
...
packages/theme-default/src/slider.css
View file @
ea3f87f6
...
...
@@ -3,6 +3,7 @@
@component-namespace
el
{
@b
slider
{
@utils-clearfix
;
@e
runway
{
width
:
100%
;
height
:
4px
;
...
...
@@ -21,7 +22,7 @@
@e
input
{
float
:
right
;
margin-top
:
-10
px
;
margin-top
:
7
px
;
&
.el-input
{
width
:
130px
;
...
...
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