当前位置:网站首页>About the problem that the El date picker Click to clear the parameter and make it null

About the problem that the El date picker Click to clear the parameter and make it null

2022-06-27 08:26:00 Out of the autistic bird

About el-date-picker Clear the problem
Use DatePicker Of clearable Attribute , Click clear , Changes the current parameter to null
However, when the data required by the project is null, it should be an empty string , Therefore, you can use the form of listening to set the null Change to an empty string

	watch:{
    
		"value.time"(newVal){
    
			if(newVal == null){
    
				this.value.time = ""
			}
			console.log(newVal);
		}
	}
原网站

版权声明
本文为[Out of the autistic bird]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/178/202206270806301012.html