-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Dropdown组件新增hideOnClick配置 && offset配置 && 完善了下demo和文档
- Loading branch information
Showing
18 changed files
with
154 additions
and
45 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ english: AliTelecom UI System | |
|
||
## 版本 | ||
|
||
目前最新版本 v0.0.28 | ||
目前最新版本 v0.0.29 | ||
|
||
## 浏览器支持 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
--- | ||
category: Components | ||
type: Basic | ||
type: Navigation | ||
title: Affix | ||
subtitle: 固钉 | ||
--- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
--- | ||
order: 2 | ||
title: | ||
zh-CN: 菜单隐藏方式 | ||
en-US: Type | ||
--- | ||
|
||
## zh-CN | ||
下拉菜单默认在点击菜单项后会被隐藏,将`hide-on-click`属性默认为`false`可以关闭此功能。 | ||
|
||
|
||
## en-US | ||
|
||
````jsx | ||
|
||
<v-dropdown :hide-on-click="false"> | ||
<div> | ||
点击显示菜单 <icon type="down"></icon> | ||
</div> | ||
<ul slot="dropdown-menu"> | ||
<li><a>选项一</a></li> | ||
<li><a>选项二</a></li> | ||
<li><a>选项三</a></li> | ||
<li role="separator" class="atui-dropdown-divider"></li> | ||
<li><a href="#">其它</a></li> | ||
</ul> | ||
</v-dropdown> | ||
|
||
```` | ||
|
||
````vue-script | ||
new Vue({ | ||
el: 'body', | ||
components: { | ||
vDropdown: atui.Dropdown, | ||
icon: atui.Icon | ||
}, | ||
data: { | ||
}, | ||
methods: { | ||
closeDropdown () { | ||
} | ||
} | ||
}) | ||
```` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
--- | ||
order: 0 | ||
title: | ||
zh-CN: 带偏移量的菜单 | ||
en-US: Type | ||
--- | ||
|
||
## zh-CN | ||
配置props:`offset=[0, 20]`,向下偏移量20px | ||
|
||
|
||
## en-US | ||
|
||
````jsx | ||
|
||
<v-dropdown :offset="[0, 20]"> | ||
<div> | ||
点击显示菜单 <icon type="down"></icon> | ||
</div> | ||
<ul slot="dropdown-menu"> | ||
<li><a>选项一</a></li> | ||
<li><a>选项二</a></li> | ||
<li><a>选项三</a></li> | ||
<li role="separator" class="atui-dropdown-divider"></li> | ||
<li><a href="#">其它</a></li> | ||
</ul> | ||
</v-dropdown> | ||
|
||
```` | ||
|
||
````vue-script | ||
new Vue({ | ||
el: 'body', | ||
components: { | ||
vDropdown: atui.Dropdown, | ||
icon: atui.Icon | ||
}, | ||
data: { | ||
}, | ||
methods: { | ||
closeDropdown () { | ||
} | ||
} | ||
}) | ||
```` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.