What problem does this feature solve?
Modal增加prop参数[zIndexAdder(是否调用 handleGetModalIndex() 增加modalIndex数值)]
配合其他组件使用时,modal传入固定的z-index期望能锁定而不触发handleGetModalIndex()方法。
目前modal的z-index只提供初始化的基值。
What does the proposed API look like?
prop/zIndexAdder: {
type: Boolean,
default: true
}
compute/wrapStyles () {
return {
// zIndex: this.modalIndex this.zIndex
zIndex: ( this.zIndexAdder?this.modalIndex:0 ) + this.zIndex
};
},
1条答案
按热度按时间9udxz4iz1#
Translation of this issue:
What problem does this feature solve?
Modal increases the prop parameter [zIndexAdder (whether to call handleGetModalIndex () to increase the modalIndex value)]
When used with other components, modal passes in a fixed Z-index expecting to lock Z-index without triggering the handleGetModalIndex () method.
Currently modal's Z-index only provides initialized base values.
What does the proposed API look like?
Prop/zIndexAdder:{
Type: Boolean,
Default: true
}
Compute/wrapStyles (){
Return{
// zIndex: this. modalIndex this. zIndex
ZIndex: (this. zIndexAdder? This. modalIndex: 0) this. zIndex
}
}