gis-common 2.2.4 → 2.2.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/dist/resource.min.js +13 -0
- package/package.json +1 -1
package/dist/resource.min.js
CHANGED
|
@@ -1875,6 +1875,19 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
1875
1875
|
}
|
|
1876
1876
|
}
|
|
1877
1877
|
return str;
|
|
1878
|
+
},
|
|
1879
|
+
asString: function asString(value) {
|
|
1880
|
+
if (CommUtils.isEmpty(value)) {
|
|
1881
|
+
return '';
|
|
1882
|
+
} else {
|
|
1883
|
+
switch (CommUtils.getDataType()) {
|
|
1884
|
+
case 'Object':
|
|
1885
|
+
case 'Array':
|
|
1886
|
+
return JSON.stringify(value);
|
|
1887
|
+
default:
|
|
1888
|
+
return value;
|
|
1889
|
+
}
|
|
1890
|
+
}
|
|
1878
1891
|
}
|
|
1879
1892
|
});
|
|
1880
1893
|
// CONCATENATED MODULE: ./src/utils/index.js
|