From 16a5de6d5f8f834367afed5574b7e47ddbf20a71 Mon Sep 17 00:00:00 2001 From: neverland Date: Sat, 21 Sep 2019 07:42:15 +0800 Subject: [PATCH] feat(ActionSheet): enable safe-area-inset-bottom by default (#4524) --- src/action-sheet/README.md | 2 +- src/action-sheet/README.zh-CN.md | 2 +- src/action-sheet/demo/index.vue | 51 +++---------------- src/action-sheet/index.tsx | 5 +- .../test/__snapshots__/demo.spec.js.snap | 16 ++---- .../test/__snapshots__/index.spec.js.snap | 8 +-- 6 files changed, 22 insertions(+), 62 deletions(-) diff --git a/src/action-sheet/README.md b/src/action-sheet/README.md index b3dc110dd..f556467e2 100644 --- a/src/action-sheet/README.md +++ b/src/action-sheet/README.md @@ -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 \| () => Element* | - | - | -| safe-area-inset-bottom | Whether to enable bottom safe area adaptation | *boolean* | `false` | - | +| safe-area-inset-bottom | Whether to enable bottom safe area adaptation | *boolean* | `true` | - | ### Events diff --git a/src/action-sheet/README.zh-CN.md b/src/action-sheet/README.zh-CN.md index 1d02fe543..b06c6b2e5 100644 --- a/src/action-sheet/README.zh-CN.md +++ b/src/action-sheet/README.zh-CN.md @@ -120,7 +120,7 @@ export default { | lock-scroll | 是否锁定背景滚动 | *boolean* | `true` | - | | duration | 动画时长,单位秒 | *number* | `0.3` | 2.0.3 | | get-container | 指定挂载的节点,可以传入选择器,
或一个返回节点的函数 | *string \| () => Element* | - | - | -| safe-area-inset-bottom | 是否开启底部安全区适配,[详细说明](#/zh-CN/quickstart#di-bu-an-quan-qu-gua-pei) | *boolean* | `false` | - | +| safe-area-inset-bottom | 是否开启底部安全区适配,[详细说明](#/zh-CN/quickstart#di-bu-an-quan-qu-gua-pei) | *boolean* | `true` | - | ### Events diff --git a/src/action-sheet/demo/index.vue b/src/action-sheet/demo/index.vue index e7a7f2dc5..b0f9bb3ef 100644 --- a/src/action-sheet/demo/index.vue +++ b/src/action-sheet/demo/index.vue @@ -1,64 +1,29 @@