feat(Overlay): add lock-scroll prop (#6082)

This commit is contained in:
neverland
2020-04-18 08:33:41 +08:00
committed by GitHub
parent 2abc2f939e
commit 8f3baa3449
4 changed files with 43 additions and 10 deletions
+8 -7
View File
@@ -63,13 +63,14 @@ export default {
### Props
| 参数 | 说明 | 类型 | 默认值 |
| --------------------- | ---------------- | ------------------ | ------- |
| show | 是否展示遮罩层 | _boolean_ | `false` |
| z-index | z-index 层级 | _number \| string_ | `1` |
| duration | 动画时长,单位秒 | _number \| string_ | `0.3` |
| class-name | 自定义类名 | _string_ | - |
| custom-style `v2.2.5` | 自定义样式 | _object_ | - |
| 参数 | 说明 | 类型 | 默认值 |
| --- | --- | --- | --- |
| show | 是否展示遮罩层 | _boolean_ | `false` |
| z-index | z-index 层级 | _number \| string_ | `1` |
| duration | 动画时长,单位秒 | _number \| string_ | `0.3` |
| class-name | 自定义类名 | _string_ | - |
| custom-style `v2.2.5` | 自定义样式 | _object_ | - |
| lock-scroll `v2.6.2` | 是否锁定背景滚动,锁定时蒙层里的内容也将无法滚动 | _boolean_ | `true` |
### Events