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