mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-26 03:16:35 +08:00
修复:popup的zIndex转换为number (#24)
This commit is contained in:
parent
4bae492458
commit
58bd17f142
@ -66,15 +66,14 @@ export default {
|
|||||||
/**
|
/**
|
||||||
* 显示popup
|
* 显示popup
|
||||||
*/
|
*/
|
||||||
open(options) {
|
open() {
|
||||||
if (this.opened) return;
|
if (this.opened) return;
|
||||||
|
|
||||||
this.opening = true;
|
this.opening = true;
|
||||||
|
|
||||||
this.$emit('input', true);
|
this.$emit('input', true);
|
||||||
|
|
||||||
const props = merge({}, this, options);
|
const zIndex = this.zIndex;
|
||||||
const zIndex = props.zIndex;
|
|
||||||
|
|
||||||
// 如果属性中传入了`zIndex`,则覆盖`popupContext`中对应的`zIndex`
|
// 如果属性中传入了`zIndex`,则覆盖`popupContext`中对应的`zIndex`
|
||||||
if (zIndex) {
|
if (zIndex) {
|
||||||
|
@ -25,7 +25,7 @@ const PopupContext = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
plusKeyByOne(key) {
|
plusKeyByOne(key) {
|
||||||
const oldVal = context[key];
|
const oldVal = +context[key];
|
||||||
context[key] = oldVal + 1;
|
context[key] = oldVal + 1;
|
||||||
|
|
||||||
return oldVal;
|
return oldVal;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user