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.41 to 0.0.42

9

es/widgets/form/Form.js

@@ -78,3 +78,4 @@ 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; }

var date = new Date(Date.parse(value)); // 判断日期对象是否是有效的
var date = new Date(Date.parse(value));
console.log('---value', value, '---Date.parse(value)', Date.parse(value), '---date', date, '---', date.getTime()); // 判断日期对象是否是有效的

@@ -105,4 +106,2 @@ if (isNaN(date.getTime())) {

if (isMobile() && attrs[key][formkey] && attrs[key][formkey].type === 'singleSelect') {
console.log('11');
if (!data[key][formkey] || Array.isArray(data[key][formkey]) && data[key][formkey].length === 0) {

@@ -115,11 +114,7 @@ formdata[formkey] = "";

}
console.log('111');
}
if (isMobile() && attrs[key][formkey] && attrs[key][formkey].type === 'inputNumber') {
console.log('22');
formdata[formkey] = Number(data[key][formkey]);
newDataLoad[formkey] = data[key][formkey];
console.log('222');
}

@@ -126,0 +121,0 @@

@@ -99,3 +99,4 @@ "use strict";

var date = new Date(Date.parse(value)); // 判断日期对象是否是有效的
var date = new Date(Date.parse(value));
console.log('---value', value, '---Date.parse(value)', Date.parse(value), '---date', date, '---', date.getTime()); // 判断日期对象是否是有效的

@@ -126,4 +127,2 @@ if (isNaN(date.getTime())) {

if ((0, _NumberUtil.isMobile)() && attrs[key][formkey] && attrs[key][formkey].type === 'singleSelect') {
console.log('11');
if (!data[key][formkey] || Array.isArray(data[key][formkey]) && data[key][formkey].length === 0) {

@@ -136,11 +135,7 @@ formdata[formkey] = "";

}
console.log('111');
}
if ((0, _NumberUtil.isMobile)() && attrs[key][formkey] && attrs[key][formkey].type === 'inputNumber') {
console.log('22');
formdata[formkey] = Number(data[key][formkey]);
newDataLoad[formkey] = data[key][formkey];
console.log('222');
}

@@ -147,0 +142,0 @@

{
"name": "sz-mx-cabin-yjb",
"version": "0.0.41",
"version": "0.0.42",
"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