doomiwork 3.5.4 → 3.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -79,6 +79,7 @@ class ViewHelper {
|
|
|
79
79
|
switch (element.type.toLowerCase()){
|
|
80
80
|
case 'number': ///验证是否是数字
|
|
81
81
|
if (isNaN(postValue)) return { successed: false, errcode: 4, errmsg: '字段类型错误(Number)', name: element.mapping }
|
|
82
|
+
break;
|
|
82
83
|
case 'date':
|
|
83
84
|
if (!(isNaN(postValue) && !isNaN(Date.parse(postValue)))) return { successed: false, errcode: 4, errmsg: '字段类型错误(Date)', name: element.mapping }
|
|
84
85
|
break;
|