From 34e5d8bc177cfd86ce1c3afb0b3f1c3d19f8af39 Mon Sep 17 00:00:00 2001 From: ShuaiKang Zhang Date: Mon, 4 Nov 2019 15:48:42 +0800 Subject: [PATCH] feat(ActionSheet): add custom-style & overlay-style props (#2248) --- packages/action-sheet/README.md | 2 ++ packages/action-sheet/index.ts | 2 ++ packages/action-sheet/index.wxml | 2 ++ 3 files changed, 6 insertions(+) diff --git a/packages/action-sheet/README.md b/packages/action-sheet/README.md index ee14d6bd..93d51fdd 100644 --- a/packages/action-sheet/README.md +++ b/packages/action-sheet/README.md @@ -90,6 +90,8 @@ Page({ | z-index | z-index 层级 | `Number` | `100` | | cancel-text | 取消按钮文字 | `String` | - | | overlay | 是否显示遮罩层 | `Boolean` | - | +| custom-style | 自定义弹出层样式 | `String` | `` | +| overlay-style | 自定义背景蒙层样式 | `String` | `` | | close-on-click-overlay | 点击遮罩是否关闭菜单 | `Boolean` | - | | safe-area-inset-bottom | 是否为 iPhoneX 留出底部安全距离 | `Boolean` | `true` | diff --git a/packages/action-sheet/index.ts b/packages/action-sheet/index.ts index effb9f47..7174ce06 100644 --- a/packages/action-sheet/index.ts +++ b/packages/action-sheet/index.ts @@ -9,6 +9,8 @@ VantComponent({ show: Boolean, title: String, cancelText: String, + customStyle: String, + overlayStyle: String, zIndex: { type: Number, value: 100 diff --git a/packages/action-sheet/index.wxml b/packages/action-sheet/index.wxml index 5f6d33f8..e20a7a17 100644 --- a/packages/action-sheet/index.wxml +++ b/packages/action-sheet/index.wxml @@ -5,6 +5,8 @@ position="bottom" z-index="{{ zIndex }}" overlay="{{ overlay }}" + custom-style="{{ customStyle }}" + overlay-style="{{ overlayStyle }}" custom-class="van-action-sheet" safe-area-inset-bottom="{{ safeAreaInsetBottom }}" close-on-click-overlay="{{ closeOnClickOverlay }}"