sz-mx-cabin-yjb
Advanced tools
Comparing version 0.0.42 to 0.0.43
@@ -75,2 +75,15 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
return false; | ||
} | ||
var valDate = ""; | ||
var pattern = /(\d{4})(\d{2})(\d{2})/; | ||
if (value.length === 8) { | ||
valDate = value.replace(pattern, '$1-$2-$3'); | ||
} | ||
if (value.length === 6) { | ||
valDate = value.replace(pattern, '$1-$2'); | ||
} else { | ||
valDate = value; | ||
} // 将值转换为日期对象 | ||
@@ -165,5 +178,3 @@ | ||
formInstance.setFieldsValue({// ...data[name], | ||
// ...newDataLoad, | ||
}); | ||
formInstance.setFieldsValue(_extends(_extends({}, data[name]), newDataLoad)); | ||
}, [data]); | ||
@@ -170,0 +181,0 @@ |
@@ -96,2 +96,15 @@ "use strict"; | ||
return false; | ||
} | ||
var valDate = ""; | ||
var pattern = /(\d{4})(\d{2})(\d{2})/; | ||
if (value.length === 8) { | ||
valDate = value.replace(pattern, '$1-$2-$3'); | ||
} | ||
if (value.length === 6) { | ||
valDate = value.replace(pattern, '$1-$2'); | ||
} else { | ||
valDate = value; | ||
} // 将值转换为日期对象 | ||
@@ -186,5 +199,3 @@ | ||
formInstance.setFieldsValue({// ...data[name], | ||
// ...newDataLoad, | ||
}); | ||
formInstance.setFieldsValue(_extends(_extends({}, data[name]), newDataLoad)); | ||
}, [data]); | ||
@@ -191,0 +202,0 @@ |
{ | ||
"name": "sz-mx-cabin-yjb", | ||
"version": "0.0.42", | ||
"version": "0.0.43", | ||
"description": "reactCabin", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
1218037
26277