@hi-ui/hiui 3.9.1 → 3.9.3
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/es/date-picker/utils.js
CHANGED
|
@@ -326,7 +326,8 @@ exports.getInRangeDate = getInRangeDate;
|
|
|
326
326
|
var parseValue = function parseValue(value, type, format, weekOffset) {
|
|
327
327
|
var locale = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 'zh-CN';
|
|
328
328
|
if (!value) return [null];
|
|
329
|
-
|
|
329
|
+
|
|
330
|
+
var _format = format !== null && format !== void 0 ? format : (0, _constants.FORMATS)(locale)[type];
|
|
330
331
|
|
|
331
332
|
var _value = (0, _moment["default"])(value, _format);
|
|
332
333
|
|