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
5fb979f3
Commit
5fb979f3
authored
Dec 20, 2016
by
baiyaaaaa
Committed by
杨奕
Dec 20, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dropdown docs improve
parent
b4215561
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
279 additions
and
236 deletions
+279
-236
examples/docs/en-US/dropdown.md
examples/docs/en-US/dropdown.md
+23
-0
examples/docs/zh-CN/dropdown.md
examples/docs/zh-CN/dropdown.md
+21
-0
yarn.lock
yarn.lock
+235
-236
No files found.
examples/docs/en-US/dropdown.md
View file @
5fb979f3
...
...
@@ -104,6 +104,29 @@ Click the triggering element or hover on it.
</el-row>
```
:::
### Menu hiding behavior
Use
`hide-on-click`
to define if menu closes on clicking.
:::demo By default menu will close when you click on menu items, and it can be turned off by setting hide-on-click to false.
```
html
<el-dropdown
:hide-on-click=
"false"
>
<span
class=
"el-dropdown-link"
>
Dropdown List
<i
class=
"el-icon-caret-bottom el-icon--right"
></i>
</span>
<el-dropdown-menu
slot=
"dropdown"
>
<el-dropdown-item>
Action 1
</el-dropdown-item>
<el-dropdown-item>
Action 2
</el-dropdown-item>
<el-dropdown-item>
Action 3
</el-dropdown-item>
<el-dropdown-item
disabled
>
Action 4
</el-dropdown-item>
<el-dropdown-item
divided
>
Action 5
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
```
:::
### Dropdown Attributes
| Attribute | Description | Type | Accepted Values | Default |
|------------- |---------------- |---------------- |---------------------- |-------- |
...
...
examples/docs/zh-CN/dropdown.md
View file @
5fb979f3
...
...
@@ -147,6 +147,27 @@
```
:::
### 菜单隐藏方式
可以
`hide-on-click`
属性来配置。
:::demo 下拉菜单默认在点击菜单项后会被隐藏,将
`hide-on-click`
属性默认为
`false`
可以关闭此功能。
```
html
<el-dropdown
:hide-on-click=
"false"
>
<span
class=
"el-dropdown-link"
>
下拉菜单
<i
class=
"el-icon-caret-bottom el-icon--right"
></i>
</span>
<el-dropdown-menu
slot=
"dropdown"
>
<el-dropdown-item>
黄金糕
</el-dropdown-item>
<el-dropdown-item>
狮子头
</el-dropdown-item>
<el-dropdown-item>
螺蛳粉
</el-dropdown-item>
<el-dropdown-item
disabled
>
双皮奶
</el-dropdown-item>
<el-dropdown-item
divided
>
蚵仔煎
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
```
:::
### Dropdown Attributes
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
...
...
yarn.lock
View file @
5fb979f3
This diff is collapsed.
Click to expand it.
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