fix:扫码弹窗接收立即关闭参数
This commit is contained in:
parent
0fbd17810d
commit
f3aea5bf88
|
@ -22,7 +22,11 @@ export default {
|
||||||
type:{
|
type:{
|
||||||
type:String,
|
type:String,
|
||||||
default:''
|
default:''
|
||||||
}
|
},
|
||||||
|
closeNow:{
|
||||||
|
type:Boolean,
|
||||||
|
default:false
|
||||||
|
},
|
||||||
},
|
},
|
||||||
data(){
|
data(){
|
||||||
return{
|
return{
|
||||||
|
@ -40,13 +44,15 @@ export default {
|
||||||
return this;
|
return this;
|
||||||
},
|
},
|
||||||
codeTextChange(){
|
codeTextChange(){
|
||||||
console.log('this.codeText',this.codeText);
|
// console.log('this.codeText',this.codeText);
|
||||||
this.$emit('closed',this.codeText);
|
this.$emit('closed',this.codeText);
|
||||||
this.closed();
|
this.codeText = '';
|
||||||
|
this.visible = !this.closeNow;
|
||||||
|
// this.closed();
|
||||||
},
|
},
|
||||||
closed(){
|
closed(){
|
||||||
this.codeText = '';
|
this.codeText = '';
|
||||||
// this.visible = false;
|
this.visible = !this.closeNow;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue