sz-mx-cabin-yjb
Advanced tools
Comparing version 0.0.41 to 0.0.42
@@ -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", |
1217487
26261