[new feature] DropdownMenu: add close-on-click-overlay prop
This commit is contained in:
@@ -83,6 +83,7 @@ export default {
|
||||
| active-color | Active color of title and option | `String` | `#1989fa` |
|
||||
| z-index | z-index of menu item | `Number` | `10` |
|
||||
| overlay | Whether to show overlay | `Boolean` | `true` |
|
||||
| close-on-click-overlay | Whether to close when click overlay | `Boolean` | `true` |
|
||||
|
||||
### DropdownItem Props
|
||||
|
||||
|
||||
@@ -19,6 +19,10 @@ export default sfc({
|
||||
activeColor: {
|
||||
type: String,
|
||||
default: BLUE
|
||||
},
|
||||
closeOnClickOverlay: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
@@ -84,7 +84,8 @@ export default {
|
||||
|------|------|------|------|------|
|
||||
| active-color | 菜单标题和选项的选中态颜色 | `String` | `#1989fa` | - |
|
||||
| z-index | 菜单栏 z-index 层级 | `Number` | `10` | - |
|
||||
| overlay | 是否显示遮罩层 | `Boolean` | `true` | - | - |
|
||||
| overlay | 是否显示遮罩层 | `Boolean` | `true` | - |
|
||||
| close-on-click-overlay | 是否在点击蒙层后关闭菜单 | `Boolean` | `true` | - |
|
||||
|
||||
### DropdownItem Props
|
||||
|
||||
|
||||
Reference in New Issue
Block a user