mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
feat(Notify): add z-index prop (#11032)
This commit is contained in:
parent
97d02a1e92
commit
b29180933b
@ -43,6 +43,7 @@ export default defineComponent({
|
||||
background: props.background,
|
||||
}}
|
||||
overlay={false}
|
||||
zIndex={props.zIndex}
|
||||
position={props.position}
|
||||
duration={0.2}
|
||||
lockScroll={props.lockScroll}
|
||||
|
@ -127,6 +127,7 @@ Vant exports following Notify utility functions:
|
||||
| type | Can be set to `primary` `success` `warning` | _NotifyType_ | `danger` |
|
||||
| message | Message | _string_ | - |
|
||||
| duration | Duration(ms), won't disappear if value is 0 | _number \| string_ | `3000` |
|
||||
| z-index | Set the z-index to a fixed value | _number \| string_ | `2000+` |
|
||||
| position `v3.4.0` | Position, can be set to `bottom` | _NotifyPosition_ | `top` |
|
||||
| color | Message color | _string_ | `white` |
|
||||
| background | Background color | _string_ | - |
|
||||
|
@ -142,6 +142,7 @@ Vant 中导出了以下 Notify 相关的辅助函数:
|
||||
| type | 类型,可选值为 `primary` `success` `warning` | _NotifyType_ | `danger` |
|
||||
| message | 展示文案,支持通过`\n`换行 | _string_ | - |
|
||||
| duration | 展示时长(ms),值为 0 时,notify 不会消失 | _number \| string_ | `3000` |
|
||||
| z-index | 将组件的 z-index 层级设置为一个固定值 | _number \| string_ | `2000+` |
|
||||
| position `v3.4.0` | 弹出位置,可选值为 `bottom` | _NotifyPosition_ | `top` |
|
||||
| color | 字体颜色 | _string_ | `white` |
|
||||
| background | 背景颜色 | _string_ | - |
|
||||
|
Loading…
x
Reference in New Issue
Block a user