This commit is contained in:
ln1778 2024-09-12 19:47:55 +08:00
parent c99120819f
commit 0d1f9fc845
1 changed files with 14 additions and 7 deletions

View File

@ -110,6 +110,9 @@ export default{
},
mounted(){
this.formValue=this.$attrs.value;
setTimeout(()=>{
this.$refs.formref.clearValidate();
},1);
if(this.$refs.formref){
for(const key in this.$refs.formref){
if(!this[key]&&key!='value'){
@ -117,10 +120,14 @@ export default{
}
}
}
},
watch:{
value(val){
this.formValue = val;
setTimeout(()=>{
this.$refs.formref.clearValidate();
},1);
}
},
methods:{