mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
feat(ActionSheet): add custom-style & overlay-style props (#2248)
This commit is contained in:
parent
54c255bcd9
commit
34e5d8bc17
@ -90,6 +90,8 @@ Page({
|
|||||||
| z-index | z-index 层级 | `Number` | `100` |
|
| z-index | z-index 层级 | `Number` | `100` |
|
||||||
| cancel-text | 取消按钮文字 | `String` | - |
|
| cancel-text | 取消按钮文字 | `String` | - |
|
||||||
| overlay | 是否显示遮罩层 | `Boolean` | - |
|
| overlay | 是否显示遮罩层 | `Boolean` | - |
|
||||||
|
| custom-style | 自定义弹出层样式 | `String` | `` |
|
||||||
|
| overlay-style | 自定义背景蒙层样式 | `String` | `` |
|
||||||
| close-on-click-overlay | 点击遮罩是否关闭菜单 | `Boolean` | - |
|
| close-on-click-overlay | 点击遮罩是否关闭菜单 | `Boolean` | - |
|
||||||
| safe-area-inset-bottom | 是否为 iPhoneX 留出底部安全距离 | `Boolean` | `true` |
|
| safe-area-inset-bottom | 是否为 iPhoneX 留出底部安全距离 | `Boolean` | `true` |
|
||||||
|
|
||||||
|
@ -9,6 +9,8 @@ VantComponent({
|
|||||||
show: Boolean,
|
show: Boolean,
|
||||||
title: String,
|
title: String,
|
||||||
cancelText: String,
|
cancelText: String,
|
||||||
|
customStyle: String,
|
||||||
|
overlayStyle: String,
|
||||||
zIndex: {
|
zIndex: {
|
||||||
type: Number,
|
type: Number,
|
||||||
value: 100
|
value: 100
|
||||||
|
@ -5,6 +5,8 @@
|
|||||||
position="bottom"
|
position="bottom"
|
||||||
z-index="{{ zIndex }}"
|
z-index="{{ zIndex }}"
|
||||||
overlay="{{ overlay }}"
|
overlay="{{ overlay }}"
|
||||||
|
custom-style="{{ customStyle }}"
|
||||||
|
overlay-style="{{ overlayStyle }}"
|
||||||
custom-class="van-action-sheet"
|
custom-class="van-action-sheet"
|
||||||
safe-area-inset-bottom="{{ safeAreaInsetBottom }}"
|
safe-area-inset-bottom="{{ safeAreaInsetBottom }}"
|
||||||
close-on-click-overlay="{{ closeOnClickOverlay }}"
|
close-on-click-overlay="{{ closeOnClickOverlay }}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user