[new feature] DropdownMenu: add duration prop

This commit is contained in:
陈嘉涵
2019-05-23 20:38:17 +08:00
parent 9bce0aa31b
commit 3e15719ff3
5 changed files with 12 additions and 2 deletions
+1
View File
@@ -84,6 +84,7 @@ export default {
|------|------|------|------|------|
| active-color | Active color of title and option | `String` | `#1989fa` |
| z-index | z-index of menu item | `Number` | `10` |
| duration | Transition duration, unit second | `Number` | `0.2` |
| overlay | Whether to show overlay | `Boolean` | `true` |
| close-on-click-overlay | Whether to close when click overlay | `Boolean` | `true` |
+4
View File
@@ -20,6 +20,10 @@ export default sfc({
type: Number,
default: 10
},
duration: {
type: Number,
default: 0.2
},
activeColor: {
type: String,
default: BLUE
+1
View File
@@ -95,6 +95,7 @@ export default {
|------|------|------|------|------|
| active-color | 菜单标题和选项的选中态颜色 | `String` | `#1989fa` | - |
| z-index | 菜单栏 z-index 层级 | `Number` | `10` | - |
| duration | 动画时长,单位秒 | `Number` | `0.2` | 2.0.0 |
| overlay | 是否显示遮罩层 | `Boolean` | `true` | - |
| close-on-click-overlay | 是否在点击遮罩层后关闭菜单 | `Boolean` | `true` | - |