docs: add guide of safe-area-inset-bottom (#4418)

This commit is contained in:
neverland
2019-09-10 20:07:31 +08:00
committed by GitHub
parent 4192ef198e
commit 50aa27fc64
24 changed files with 60 additions and 102 deletions
+1 -1
View File
@@ -106,7 +106,7 @@ export default {
| lock-scroll | Whether to lock background scroll | *boolean* | `true` | - |
| duration | Transition duration, unit second | *number* | `0.3` | 2.0.3 |
| get-container | Return the mount node for action-sheet | *string \| () => HTMLElement* | - | - |
| safe-area-inset-bottom | Whether to enable bottom safe area adaptation, to enable those features use `viewport-fit=cover` in the `viewport` meta tag | *boolean* | `false` | - |
| safe-area-inset-bottom | Whether to enable bottom safe area adaptation | *boolean* | `false` | - |
### Events
+2 -2
View File
@@ -120,7 +120,7 @@ export default {
| lock-scroll | 是否锁定背景滚动 | *boolean* | `true` | - |
| duration | 动画时长,单位秒 | *number* | `0.3` | 2.0.3 |
| get-container | 指定挂载的节点,可以传入选择器,<br>或一个返回节点的函数 | *string \| () => HTMLElement* | - | - |
| safe-area-inset-bottom | 是否开启 iPhone X 底部安全区适配,需要在 `viewport` meta 标签中设置 `viewport-fit=cover` | *boolean* | `false` | - |
| safe-area-inset-bottom | 是否开启底部安全区适配,[详细说明](#/zh-CN/quickstart#di-bu-an-quan-qu-gua-pei) | *boolean* | `false` | - |
### Events
@@ -136,7 +136,7 @@ export default {
### Action 数据结构
`Props`中的`actions`为一个对象数组,数组中的每个对象配置一列,每一列有以下`key`
`actions`属性为一个对象数组,数组中的每个对象配置一列,对象可以包含以下值
| 键名 | 说明 | 类型 |
|------|------|------|