mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
[improvement] ActionSheet: add z-index prop (#610)
This commit is contained in:
parent
4b59ae9424
commit
6dceff823e
@ -88,6 +88,7 @@ Page({
|
||||
|-----------|-----------|-----------|-------------|
|
||||
| actions | 菜单选项 | `Array` | `[]` |
|
||||
| title | 标题 | `String` | - |
|
||||
| z-index | z-index 层级 | `Number` | `100` |
|
||||
| cancel-text | 取消按钮文字 | `String` | - |
|
||||
| overlay | 是否显示遮罩层 | `Boolean` | - |
|
||||
| close-on-click-overlay | 点击遮罩是否关闭菜单 | `Boolean` | - |
|
||||
|
@ -5,6 +5,10 @@ create({
|
||||
show: Boolean,
|
||||
title: String,
|
||||
cancelText: String,
|
||||
zIndex: {
|
||||
type: Number,
|
||||
value: 100
|
||||
},
|
||||
actions: {
|
||||
type: Array,
|
||||
value: []
|
||||
|
@ -1,6 +1,7 @@
|
||||
<van-popup
|
||||
show="{{ show }}"
|
||||
position="bottom"
|
||||
z-index="{{ zIndex }}"
|
||||
overlay="{{ overlay }}"
|
||||
custom-class="van-action-sheet"
|
||||
close-on-click-overlay="{{ closeOnClickOverlay }}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user