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
86f1cf7b
Commit
86f1cf7b
authored
Oct 09, 2016
by
cinwell.li
Committed by
FuryBean
Oct 09, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Popover: add reference slot description, #246 (#270)
parent
e6317211
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
examples/docs/zh-cn/popover.md
examples/docs/zh-cn/popover.md
+3
-2
No files found.
examples/docs/zh-cn/popover.md
View file @
86f1cf7b
...
...
@@ -118,7 +118,7 @@
### 基础用法
Popover 的属性与 Tooltip 很类似,它们都是基于
`Vue-popper`
开发的,因此对于重复属性,请参考 Tooltip 的文档,在此文档中不做详尽解释。
:::demo 设置索引
`ref`
,在按钮中,我们注册了自定义指令
`v-popover`
,指向索引ID。
`trigger`
属性用于设置何时触发 Popover ,提供三种触发方式:
`hover`
,
`click`
和
`focus`
。
或者
通过
`slot`
指定 reference。
:::demo 设置索引
`ref`
,在按钮中,我们注册了自定义指令
`v-popover`
,指向索引ID。
`trigger`
属性用于设置何时触发 Popover ,提供三种触发方式:
`hover`
,
`click`
和
`focus`
。
第二种用法
通过
`slot`
指定 reference。
```
html
<el-popover
ref=
"popover1"
...
...
@@ -212,4 +212,5 @@ Popover 的属性与 Tooltip 很类似,它们都是基于`Vue-popper`开发的
### Slot
| 参数 | 说明 |
|--- | ---|
| — | Popover内嵌HTML文本 |
| — | Popover 内嵌 HTML 文本 |
| reference | 触发 Popover 显示的 HTML 元素 |
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