Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sz-mx-cabin-yjb

Package Overview
Dependencies
Maintainers
1
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sz-mx-cabin-yjb - npm Package Compare versions

Comparing version 0.0.42 to 0.0.43

17

es/widgets/form/Form.js

@@ -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 @@

2

package.json
{
"name": "sz-mx-cabin-yjb",
"version": "0.0.42",
"version": "0.0.43",
"description": "reactCabin",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc