gis-common 1.0.13 → 1.0.14
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/dist/resource.min.js +13 -1
- package/package.json +1 -1
package/dist/resource.min.js
CHANGED
|
@@ -1493,6 +1493,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
1493
1493
|
}
|
|
1494
1494
|
});
|
|
1495
1495
|
// CONCATENATED MODULE: ./src/utils/StringUtils.js
|
|
1496
|
+
|
|
1496
1497
|
/* harmony default export */ var StringUtils = ({
|
|
1497
1498
|
/**
|
|
1498
1499
|
* 常用正则验证
|
|
@@ -1616,7 +1617,18 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
1616
1617
|
}
|
|
1617
1618
|
|
|
1618
1619
|
args = args.map(function (val) {
|
|
1619
|
-
|
|
1620
|
+
switch (CommUtils.getDataType(val)) {
|
|
1621
|
+
case 'Number':
|
|
1622
|
+
return val || 0;
|
|
1623
|
+
case 'String':
|
|
1624
|
+
return val || '';
|
|
1625
|
+
case 'Object':
|
|
1626
|
+
return val || '{}';
|
|
1627
|
+
case 'Array':
|
|
1628
|
+
return val || '[]';
|
|
1629
|
+
default:
|
|
1630
|
+
return val.toString();
|
|
1631
|
+
}
|
|
1620
1632
|
});
|
|
1621
1633
|
return strArray.reduce(function (prev, next, index) {
|
|
1622
1634
|
return '' + prev + args[index - 1] + next;
|