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` | `[]` |
|
| actions | 菜单选项 | `Array` | `[]` |
|
||||||
| title | 标题 | `String` | - |
|
| title | 标题 | `String` | - |
|
||||||
|
| z-index | z-index 层级 | `Number` | `100` |
|
||||||
| cancel-text | 取消按钮文字 | `String` | - |
|
| cancel-text | 取消按钮文字 | `String` | - |
|
||||||
| overlay | 是否显示遮罩层 | `Boolean` | - |
|
| overlay | 是否显示遮罩层 | `Boolean` | - |
|
||||||
| close-on-click-overlay | 点击遮罩是否关闭菜单 | `Boolean` | - |
|
| close-on-click-overlay | 点击遮罩是否关闭菜单 | `Boolean` | - |
|
||||||
|
@ -5,6 +5,10 @@ create({
|
|||||||
show: Boolean,
|
show: Boolean,
|
||||||
title: String,
|
title: String,
|
||||||
cancelText: String,
|
cancelText: String,
|
||||||
|
zIndex: {
|
||||||
|
type: Number,
|
||||||
|
value: 100
|
||||||
|
},
|
||||||
actions: {
|
actions: {
|
||||||
type: Array,
|
type: Array,
|
||||||
value: []
|
value: []
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
<van-popup
|
<van-popup
|
||||||
show="{{ show }}"
|
show="{{ show }}"
|
||||||
position="bottom"
|
position="bottom"
|
||||||
|
z-index="{{ zIndex }}"
|
||||||
overlay="{{ overlay }}"
|
overlay="{{ overlay }}"
|
||||||
custom-class="van-action-sheet"
|
custom-class="van-action-sheet"
|
||||||
close-on-click-overlay="{{ closeOnClickOverlay }}"
|
close-on-click-overlay="{{ closeOnClickOverlay }}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user