gis-common 2.2.4 → 2.2.6
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 +16 -0
- package/package.json +1 -1
package/dist/resource.min.js
CHANGED
|
@@ -1033,6 +1033,9 @@ Date.prototype.addDate = function (interval, number) {
|
|
|
1033
1033
|
lastMonthDate: new Date(new Date().getFullYear(), new Date().getMonth() - 1, 1),
|
|
1034
1034
|
thisMonthDate: new Date(new Date().getFullYear(), new Date().getMonth(), 1),
|
|
1035
1035
|
nextMonthDate: new Date(new Date().getFullYear(), new Date().getMonth() + 1, 1),
|
|
1036
|
+
lastWeekDate: new Date(new Date().getFullYear(), new Date().getMonth(), new Date().getDate() + 1 - 7 - new Date().getDay()),
|
|
1037
|
+
thisWeekDate: new Date(new Date().getFullYear(), new Date().getMonth(), new Date().getDate() + 1 - new Date().getDay()),
|
|
1038
|
+
nextWeekDate: new Date(new Date().getFullYear(), new Date().getMonth(), new Date().getDate() + 1 + 7 - new Date().getDay()),
|
|
1036
1039
|
lastDayDate: new Date(new Date().getFullYear(), new Date().getMonth(), new Date().getDate() - 1),
|
|
1037
1040
|
thisDayDate: new Date(new Date().setHours(0, 0, 0, 0)),
|
|
1038
1041
|
nextDayDate: new Date(new Date().getFullYear(), new Date().getMonth(), new Date().getDate() + 1),
|
|
@@ -1875,6 +1878,19 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
1875
1878
|
}
|
|
1876
1879
|
}
|
|
1877
1880
|
return str;
|
|
1881
|
+
},
|
|
1882
|
+
asString: function asString(value) {
|
|
1883
|
+
if (CommUtils.isEmpty(value)) {
|
|
1884
|
+
return '';
|
|
1885
|
+
} else {
|
|
1886
|
+
switch (CommUtils.getDataType()) {
|
|
1887
|
+
case 'Object':
|
|
1888
|
+
case 'Array':
|
|
1889
|
+
return JSON.stringify(value);
|
|
1890
|
+
default:
|
|
1891
|
+
return value;
|
|
1892
|
+
}
|
|
1893
|
+
}
|
|
1878
1894
|
}
|
|
1879
1895
|
});
|
|
1880
1896
|
// CONCATENATED MODULE: ./src/utils/index.js
|