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
b808879d
Commit
b808879d
authored
Sep 02, 2016
by
qingwei.li
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Popover: fix visible
parent
3a6e6638
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
7 deletions
+9
-7
examples/docs/dialog.md
examples/docs/dialog.md
+2
-2
examples/docs/popover.md
examples/docs/popover.md
+2
-2
examples/docs/tooltip.md
examples/docs/tooltip.md
+1
-1
src/utils/vue-popper.js
src/utils/vue-popper.js
+4
-2
No files found.
examples/docs/dialog.md
View file @
b808879d
...
...
@@ -162,10 +162,10 @@ Dialog 组件的正文标题可以是任意的,甚至可以是表格或表单
<el-dialog
title=
"收货地址"
v-model=
"dialogFormVisible"
>
<el-form
:models=
"form"
>
<el-form-item
label=
"活动名称"
:label-width=
"formLabelWidth"
>
<el-input
:model.sync
=
"form.name"
auto-complete=
"off"
></el-input>
<el-input
v-model
=
"form.name"
auto-complete=
"off"
></el-input>
</el-form-item>
<el-form-item
label=
"活动区域"
:label-width=
"formLabelWidth"
>
<el-select
:value.sync
=
"form.region"
placeholder=
"请选择活动区域"
>
<el-select
v-model
=
"form.region"
placeholder=
"请选择活动区域"
>
<el-option
label=
"区域一"
value=
"shanghai"
></el-option>
<el-option
label=
"区域二"
value=
"beijing"
></el-option>
</el-select>
...
...
examples/docs/popover.md
View file @
b808879d
...
...
@@ -185,7 +185,7 @@ Popover 的属性与 Tooltip 很类似,它们都是基于`Vue-popper`开发的
ref=
"popover5"
placement=
"top"
width=
"160"
:visible
=
"visible2"
>
v-model
=
"visible2"
>
<p>
这是一段内容这是一段内容确定删除吗?
</p>
<div
style=
"text-align: right; margin: 0"
>
<el-button
size=
"mini"
type=
"text"
@
click.native=
"visible2 = false"
>
取消
</el-button>
...
...
@@ -205,7 +205,7 @@ Popover 的属性与 Tooltip 很类似,它们都是基于`Vue-popper`开发的
| content | 显示的内容,也可以通过
`slot`
传入 DOM | String | — | — |
| width | 宽度 | String, Number | — | 最小宽度 150px |
| placement | 出现位置 | String | top/top-start/top-end/bottom/bottom-start/bottom-end/left/left-start/left-end/right/right-start/right-end | bottom |
| v
isible | 初始
状态是否可见 | Boolean | — | false |
| v
alue(v-model) |
状态是否可见 | Boolean | — | false |
| offset | 出现位置的偏移量 | Number | — | 0 |
| transition | 定义渐变动画 | String | — | fade-in-linear |
| visible-arrow | 是否显示 Tooltip 箭头,更多参数可见
[
Vue-popper
](
https://github.com/element-component/vue-popper
)
| Boolean | — | true |
...
...
examples/docs/tooltip.md
View file @
b808879d
...
...
@@ -167,7 +167,7 @@ Tooltip 组件提供了两个不同的主题:`dark`和`light`。
| effect | 默认提供的主题 | String |
`dark`
,
`light`
| dark |
| content | 显示的内容,也可以通过
`slot#content`
传入 DOM | String | — | — |
| placement | Tooltip 的出现位置 | String |
`top`
,
`top-start`
,
`top-end`
,
`bottom`
,
`bottom-start`
,
`bottom-end`
,
`left`
,
`left-start`
,
`left-end`
,
`right`
,
`right-start`
,
`right-end`
| bottom |
| v
isible | 初始
状态是否可见 | Boolean | — | false |
| v
alue(v-model) |
状态是否可见 | Boolean | — | false |
| disabled | Tooltip 是否可用 | Boolean | — | false |
| offset | 出现位置的偏移量 | Number | — | 0 |
| transition | 定义渐变动画 | String | — |
`fade-in-linear`
|
...
...
src/utils/vue-popper.js
View file @
b808879d
...
...
@@ -23,7 +23,7 @@ export default {
offset
:
{
default
:
0
},
v
isibl
e
:
Boolean
,
v
alu
e
:
Boolean
,
visibleArrow
:
Boolean
,
transition
:
String
,
options
:
{
...
...
@@ -41,15 +41,17 @@ export default {
},
watch
:
{
v
isibl
e
:
{
v
alu
e
:
{
immediate
:
true
,
handler
(
val
)
{
this
.
showPopper
=
val
;
this
.
$emit
(
'
input
'
,
val
);
}
},
showPopper
(
val
)
{
val
?
this
.
updatePopper
()
:
this
.
destroyPopper
();
this
.
$emit
(
'
input
'
,
val
);
}
},
...
...
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