This commit is contained in:
parent
c99120819f
commit
0d1f9fc845
|
@ -110,17 +110,24 @@ export default{
|
||||||
},
|
},
|
||||||
mounted(){
|
mounted(){
|
||||||
this.formValue=this.$attrs.value;
|
this.formValue=this.$attrs.value;
|
||||||
|
setTimeout(()=>{
|
||||||
|
this.$refs.formref.clearValidate();
|
||||||
|
},1);
|
||||||
if(this.$refs.formref){
|
if(this.$refs.formref){
|
||||||
for(const key in this.$refs.formref){
|
for(const key in this.$refs.formref){
|
||||||
if(!this[key]&&key!='value'){
|
if(!this[key]&&key!='value'){
|
||||||
this[key]=this.$refs.formref[key];
|
this[key]=this.$refs.formref[key];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
watch:{
|
watch:{
|
||||||
value(val){
|
value(val){
|
||||||
this.formValue = val;
|
this.formValue = val;
|
||||||
|
setTimeout(()=>{
|
||||||
|
this.$refs.formref.clearValidate();
|
||||||
|
},1);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
|
|
Loading…
Reference in New Issue