mirror of
https://github.com/vxcontrol/ncform.git
synced 2026-07-19 18:23:32 -04:00
fix(ncform-theme-elementui): fixed modelVal becomes '0' when the date-picker value is cleared
fix #56
This commit is contained in:
@@ -123,7 +123,7 @@ export default {
|
||||
methods: {
|
||||
// 你可以通过该方法在modelVal传出去之前进行加工处理,即在this.$emit('input')之前
|
||||
_processModelVal(newVal){
|
||||
return `${new Date(newVal).getTime()}`;
|
||||
return `${newVal ? new Date(newVal).getTime() : ''}`;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user