sz-mx-cabin
Advanced tools
Comparing version 0.0.9-beta1 to 0.0.9-beta2
@@ -74,9 +74,12 @@ 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; } | ||
formInstance.setFieldsValue(_extends({}, data[name])); | ||
var newdata = data.map(function (item) { | ||
if (item._isAMomentObject()) { | ||
return item.format('YYYY-MM-DD'); | ||
var newdata = {}; | ||
for (var key in data) { | ||
if (data[key]._isAMomentObject()) { | ||
newdata[key] = data[key].format('YYYY-MM-DD'); | ||
} else { | ||
return item; | ||
newdata[key] = data[key]; | ||
} | ||
}); | ||
} | ||
sessionStorage.setItem('data', JSON.stringify(newdata)); | ||
@@ -88,9 +91,12 @@ }, [data]); | ||
var values = formInstance.getFieldsValue(); | ||
var newdata = values.map(function (item) { | ||
if (item._isAMomentObject()) { | ||
return item.format('YYYY-MM-DD'); | ||
var newdata = {}; | ||
for (var key in values) { | ||
if (values[key]._isAMomentObject()) { | ||
newdata[key] = values[key].format('YYYY-MM-DD'); | ||
} else { | ||
return item; | ||
newdata[key] = values[key]; | ||
} | ||
}); | ||
} | ||
var newData = {}; | ||
@@ -97,0 +103,0 @@ |
@@ -90,9 +90,12 @@ "use strict"; | ||
formInstance.setFieldsValue(_extends({}, data[name])); | ||
var newdata = data.map(function (item) { | ||
if (item._isAMomentObject()) { | ||
return item.format('YYYY-MM-DD'); | ||
var newdata = {}; | ||
for (var key in data) { | ||
if (data[key]._isAMomentObject()) { | ||
newdata[key] = data[key].format('YYYY-MM-DD'); | ||
} else { | ||
return item; | ||
newdata[key] = data[key]; | ||
} | ||
}); | ||
} | ||
sessionStorage.setItem('data', JSON.stringify(newdata)); | ||
@@ -104,9 +107,12 @@ }, [data]); | ||
var values = formInstance.getFieldsValue(); | ||
var newdata = values.map(function (item) { | ||
if (item._isAMomentObject()) { | ||
return item.format('YYYY-MM-DD'); | ||
var newdata = {}; | ||
for (var key in values) { | ||
if (values[key]._isAMomentObject()) { | ||
newdata[key] = values[key].format('YYYY-MM-DD'); | ||
} else { | ||
return item; | ||
newdata[key] = values[key]; | ||
} | ||
}); | ||
} | ||
var newData = {}; | ||
@@ -113,0 +119,0 @@ |
{ | ||
"name": "sz-mx-cabin", | ||
"version": "0.0.9-beta1", | ||
"version": "0.0.9-beta2", | ||
"description": "reactCabin", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1167722
25228