evui 3.1.43 → 3.1.44
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/evui.common.js +15 -13
- package/dist/evui.common.js.map +1 -1
- package/dist/evui.umd.js +15 -13
- package/dist/evui.umd.js.map +1 -1
- package/dist/evui.umd.min.js +1 -1
- package/dist/evui.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/datePicker/uses.js +12 -7
package/dist/evui.common.js
CHANGED
|
@@ -7806,7 +7806,7 @@ $({ target: 'Number', stat: true }, {
|
|
|
7806
7806
|
/***/ "9224":
|
|
7807
7807
|
/***/ (function(module) {
|
|
7808
7808
|
|
|
7809
|
-
module.exports = JSON.parse("{\"a\":\"3.1.
|
|
7809
|
+
module.exports = JSON.parse("{\"a\":\"3.1.44\"}");
|
|
7810
7810
|
|
|
7811
7811
|
/***/ }),
|
|
7812
7812
|
|
|
@@ -21562,6 +21562,8 @@ var uses_useShortcuts = function useShortcuts(param) {
|
|
|
21562
21562
|
|
|
21563
21563
|
|
|
21564
21564
|
var clickShortcut = function clickShortcut(targetKey) {
|
|
21565
|
+
var _props$options3;
|
|
21566
|
+
|
|
21565
21567
|
var isRange = ['dateRange', 'dateTimeRange'].includes(props.mode);
|
|
21566
21568
|
var targetShortcut = usedShortcuts.find(function (_ref7) {
|
|
21567
21569
|
var key = _ref7.key;
|
|
@@ -21573,6 +21575,7 @@ var uses_useShortcuts = function useShortcuts(param) {
|
|
|
21573
21575
|
}
|
|
21574
21576
|
|
|
21575
21577
|
var shortcutDate = targetShortcut.shortcutDate;
|
|
21578
|
+
var timeFormat = (_props$options3 = props.options) === null || _props$options3 === void 0 ? void 0 : _props$options3.timeFormat;
|
|
21576
21579
|
|
|
21577
21580
|
if (isRange) {
|
|
21578
21581
|
var _shortcutDate3 = shortcutDate(),
|
|
@@ -21581,22 +21584,21 @@ var uses_useShortcuts = function useShortcuts(param) {
|
|
|
21581
21584
|
toDate = _shortcutDate4[1];
|
|
21582
21585
|
|
|
21583
21586
|
if (props.mode === 'dateTimeRange') {
|
|
21584
|
-
|
|
21585
|
-
|
|
21586
|
-
|
|
21587
|
-
|
|
21588
|
-
fromTimeFormat = _props$options$timeFo2[0],
|
|
21589
|
-
toTimeFormat = _props$options$timeFo2[1];
|
|
21587
|
+
if (timeFormat !== null && timeFormat !== void 0 && timeFormat.length) {
|
|
21588
|
+
var _timeFormat3 = _slicedToArray(timeFormat, 2),
|
|
21589
|
+
fromTimeFormat = _timeFormat3[0],
|
|
21590
|
+
toTimeFormat = _timeFormat3[1];
|
|
21590
21591
|
|
|
21591
|
-
|
|
21592
|
+
mv.value = [getChangedValueByTimeFormat(fromTimeFormat, formatDateTime(fromDate)), getChangedValueByTimeFormat(toTimeFormat, formatDateTime(toDate))];
|
|
21593
|
+
} else {
|
|
21594
|
+
mv.value = [formatDateTime(fromDate), formatDateTime(toDate)];
|
|
21595
|
+
}
|
|
21592
21596
|
} else {
|
|
21593
21597
|
mv.value = [formatDate(fromDate), formatDate(toDate)];
|
|
21594
21598
|
}
|
|
21595
21599
|
} else {
|
|
21596
|
-
var _props$options4;
|
|
21597
|
-
|
|
21598
21600
|
var sDate = shortcutDate();
|
|
21599
|
-
mv.value = props.mode === 'dateTime' ? getChangedValueByTimeFormat(
|
|
21601
|
+
mv.value = props.mode === 'dateTime' ? getChangedValueByTimeFormat(timeFormat, formatDateTime(sDate)) : formatDate(sDate);
|
|
21600
21602
|
}
|
|
21601
21603
|
|
|
21602
21604
|
clearShortcuts();
|
|
@@ -21605,11 +21607,11 @@ var uses_useShortcuts = function useShortcuts(param) {
|
|
|
21605
21607
|
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["watch"])(function () {
|
|
21606
21608
|
return props.modelValue;
|
|
21607
21609
|
}, function (curr) {
|
|
21608
|
-
var _props$
|
|
21610
|
+
var _props$options4, _props$options5;
|
|
21609
21611
|
|
|
21610
21612
|
setActiveShortcut();
|
|
21611
21613
|
|
|
21612
|
-
if (props.mode === 'dateMulti' && (props === null || props === void 0 ? void 0 : (_props$
|
|
21614
|
+
if (props.mode === 'dateMulti' && (props === null || props === void 0 ? void 0 : (_props$options4 = props.options) === null || _props$options4 === void 0 ? void 0 : _props$options4.multiType) === 'date' && (props === null || props === void 0 ? void 0 : (_props$options5 = props.options) === null || _props$options5 === void 0 ? void 0 : _props$options5.multiDayLimit) > curr.length) {
|
|
21613
21615
|
return;
|
|
21614
21616
|
} else if (props.mode === 'dateTime' || props.mode === 'dateTimeRange') {
|
|
21615
21617
|
currentValue.value = curr;
|