feat(Popup): duration can be string type

This commit is contained in:
陈嘉涵
2020-01-28 21:50:09 +08:00
parent 086e910afd
commit 4fba295ea1
6 changed files with 25 additions and 25 deletions
+1 -1
View File
@@ -122,7 +122,7 @@ export default {
| position | Can be set to `top` `bottom` `right` `left` | *string* | `center` |
| overlay-class | Custom overlay class | *string* | - |
| overlay-style | Custom overlay style | *object* | - |
| duration | Transition duration, unit second | *number* | `0.3` |
| duration | Transition duration, unit second | *string \| number* | `0.3` |
| round `v2.0.7` | Whether to show round corner | *boolean* | `false` |
| lock-scroll | Whether to lock background scroll | *boolean* | `true` |
| lazy-render | Whether to lazy render util appeared | *boolean* | `true` |
+1 -1
View File
@@ -133,7 +133,7 @@ export default {
| position | 弹出位置,可选值为 `top` `bottom` `right` `left` | *string* | `center` |
| overlay-class | 自定义遮罩层类名 | *string* | - |
| overlay-style | 自定义遮罩层样式 | *object* | - |
| duration | 动画时长,单位秒 | *number* | `0.3` |
| duration | 动画时长,单位秒 | *string \| number* | `0.3` |
| round `v2.0.7` | 是否显示圆角 | *boolean* | `false` |
| lock-scroll | 是否锁定背景滚动 | *boolean* | `true` |
| lazy-render | 是否在显示弹层时才渲染节点 | *boolean* | `true` |
+1 -1
View File
@@ -9,7 +9,7 @@ export default createComponent({
props: {
round: Boolean,
duration: Number,
duration: [Number, String],
closeable: Boolean,
transition: String,
safeAreaInsetBottom: Boolean,