bi-eleme 2.4.2 → 2.4.4
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/lib/element-ui.common.js +30 -34
- package/lib/index.js +1 -1
- package/lib/super-date.js +24 -28
- package/package.json +1 -1
- package/packages/super-date/src/panel/date-range.vue +6 -6
- package/packages/super-date/src/picker/date-picker.js +0 -1
- package/packages/super-date/src/picker.vue +5 -11
- package/src/index.js +1 -1
package/lib/super-date.js
CHANGED
|
@@ -304,7 +304,7 @@ module.exports = require("bi-eleme/lib/utils/vue-popper");
|
|
|
304
304
|
// ESM COMPAT FLAG
|
|
305
305
|
__webpack_require__.r(__webpack_exports__);
|
|
306
306
|
|
|
307
|
-
// CONCATENATED MODULE: ./node_modules/.store/vue-loader@15.11.1/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/.store/vue-loader@15.11.1/node_modules/vue-loader/lib??vue-loader-options!./packages/super-date/src/picker.vue?vue&type=template&id=
|
|
307
|
+
// CONCATENATED MODULE: ./node_modules/.store/vue-loader@15.11.1/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/.store/vue-loader@15.11.1/node_modules/vue-loader/lib??vue-loader-options!./packages/super-date/src/picker.vue?vue&type=template&id=54fb4006
|
|
308
308
|
var render = function () {
|
|
309
309
|
var _vm = this
|
|
310
310
|
var _h = _vm.$createElement
|
|
@@ -374,7 +374,7 @@ var staticRenderFns = []
|
|
|
374
374
|
render._withStripped = true
|
|
375
375
|
|
|
376
376
|
|
|
377
|
-
// CONCATENATED MODULE: ./packages/super-date/src/picker.vue?vue&type=template&id=
|
|
377
|
+
// CONCATENATED MODULE: ./packages/super-date/src/picker.vue?vue&type=template&id=54fb4006
|
|
378
378
|
|
|
379
379
|
// EXTERNAL MODULE: external "vue"
|
|
380
380
|
var external_vue_ = __webpack_require__(7);
|
|
@@ -799,6 +799,12 @@ var pickervue_type_script_lang_js_validator = function validator(val) {
|
|
|
799
799
|
return [];
|
|
800
800
|
}
|
|
801
801
|
},
|
|
802
|
+
selectableDynamicDays: {
|
|
803
|
+
type: Array,
|
|
804
|
+
default: function _default() {
|
|
805
|
+
return [];
|
|
806
|
+
}
|
|
807
|
+
},
|
|
802
808
|
needTime: Boolean
|
|
803
809
|
},
|
|
804
810
|
|
|
@@ -821,7 +827,6 @@ var pickervue_type_script_lang_js_validator = function validator(val) {
|
|
|
821
827
|
|
|
822
828
|
watch: {
|
|
823
829
|
pickerVisible: function pickerVisible(val) {
|
|
824
|
-
console.log('🚀 ~ val:', val);
|
|
825
830
|
if (this.readonly || this.pickerDisabled) return;
|
|
826
831
|
if (val) {
|
|
827
832
|
this.showPicker();
|
|
@@ -844,7 +849,6 @@ var pickervue_type_script_lang_js_validator = function validator(val) {
|
|
|
844
849
|
handler: function handler(val) {
|
|
845
850
|
if (this.picker) {
|
|
846
851
|
this.picker.value = this.mergeDateAndTime(this.value);
|
|
847
|
-
console.log('🚀 ~ this.mergeDateAndTime(this.value):', this.mergeDateAndTime(this.value).date);
|
|
848
852
|
}
|
|
849
853
|
}
|
|
850
854
|
},
|
|
@@ -868,7 +872,6 @@ var pickervue_type_script_lang_js_validator = function validator(val) {
|
|
|
868
872
|
|
|
869
873
|
computed: {
|
|
870
874
|
returnedValue: function returnedValue() {
|
|
871
|
-
console.log('🚀 ~ returnedValue:');
|
|
872
875
|
var formattedValue = formatAsFormatAndType(this.parsedValue, this.format, this.type, this.rangeSeparator);
|
|
873
876
|
|
|
874
877
|
// 分离日期和时间
|
|
@@ -1075,7 +1078,6 @@ var pickervue_type_script_lang_js_validator = function validator(val) {
|
|
|
1075
1078
|
}
|
|
1076
1079
|
},
|
|
1077
1080
|
blur: function blur() {
|
|
1078
|
-
console.log('blur');
|
|
1079
1081
|
this.refInput.forEach(function (input) {
|
|
1080
1082
|
return input.blur();
|
|
1081
1083
|
});
|
|
@@ -1121,7 +1123,6 @@ var pickervue_type_script_lang_js_validator = function validator(val) {
|
|
|
1121
1123
|
var value = this.parseString(this.displayValue);
|
|
1122
1124
|
if (value) {
|
|
1123
1125
|
this.picker.value = value;
|
|
1124
|
-
console.log('🚀 ~ value:', value);
|
|
1125
1126
|
if (this.isValidValue(value)) {
|
|
1126
1127
|
this.emitInput(value);
|
|
1127
1128
|
this.userInput = null;
|
|
@@ -1154,7 +1155,6 @@ var pickervue_type_script_lang_js_validator = function validator(val) {
|
|
|
1154
1155
|
this.userInput = [this.formatToString(value), this.displayValue[1]];
|
|
1155
1156
|
var newValue = [value, this.picker.value && this.picker.value[1]];
|
|
1156
1157
|
this.picker.value = newValue;
|
|
1157
|
-
console.log('🚀 ~ newValue:', newValue);
|
|
1158
1158
|
if (this.isValidValue(newValue)) {
|
|
1159
1159
|
this.emitInput(newValue);
|
|
1160
1160
|
this.userInput = null;
|
|
@@ -1167,7 +1167,6 @@ var pickervue_type_script_lang_js_validator = function validator(val) {
|
|
|
1167
1167
|
this.userInput = [this.displayValue[0], this.formatToString(value)];
|
|
1168
1168
|
var newValue = [this.picker.value && this.picker.value[0], value];
|
|
1169
1169
|
this.picker.value = newValue;
|
|
1170
|
-
console.log('🚀 ~ newValue:', newValue);
|
|
1171
1170
|
if (this.isValidValue(newValue)) {
|
|
1172
1171
|
this.emitInput(newValue);
|
|
1173
1172
|
this.userInput = null;
|
|
@@ -1234,11 +1233,11 @@ var pickervue_type_script_lang_js_validator = function validator(val) {
|
|
|
1234
1233
|
}
|
|
1235
1234
|
this.pickerVisible = this.picker.visible = true;
|
|
1236
1235
|
this.picker.selectableDays = this.selectableDays;
|
|
1236
|
+
this.picker.selectableDynamicDays = this.selectableDynamicDays;
|
|
1237
1237
|
this.updatePopper();
|
|
1238
1238
|
|
|
1239
1239
|
// 转换parsedValue为包含date、time、type和dynamicRange字段的对象格式
|
|
1240
1240
|
this.picker.value = this.mergeDateAndTime(this.value);
|
|
1241
|
-
console.log('🚀 ~ this.mergeDateAndTime(this.value):', this.mergeDateAndTime(this.value));
|
|
1242
1241
|
this.picker.resetView && this.picker.resetView();
|
|
1243
1242
|
|
|
1244
1243
|
this.$nextTick(function () {
|
|
@@ -1307,7 +1306,6 @@ var pickervue_type_script_lang_js_validator = function validator(val) {
|
|
|
1307
1306
|
var date = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
1308
1307
|
var visible = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
1309
1308
|
|
|
1310
|
-
console.log('🚀🚀🚀🚀🚀🚀🚀 ~ date:', date);
|
|
1311
1309
|
_this2.userInput = null;
|
|
1312
1310
|
_this2.pickerVisible = _this2.picker.visible = visible;
|
|
1313
1311
|
_this2.emitInput(date);
|
|
@@ -1344,9 +1342,7 @@ var pickervue_type_script_lang_js_validator = function validator(val) {
|
|
|
1344
1342
|
}
|
|
1345
1343
|
},
|
|
1346
1344
|
emitChange: function emitChange(val) {
|
|
1347
|
-
console.log('🚀 ~ val:', val);
|
|
1348
1345
|
// determine user real change only
|
|
1349
|
-
console.log('🚀 ~ valueEquals(val, this.valueOnOpen):', valueEquals(val, this.valueOnOpen));
|
|
1350
1346
|
if (!valueEquals(val, this.valueOnOpen)) {
|
|
1351
1347
|
this.$emit('change', val);
|
|
1352
1348
|
this.valueOnOpen = val;
|
|
@@ -1398,8 +1394,8 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
1398
1394
|
)
|
|
1399
1395
|
|
|
1400
1396
|
/* harmony default export */ var picker = (component.exports);
|
|
1401
|
-
// CONCATENATED MODULE: ./node_modules/.store/vue-loader@15.11.1/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/.store/vue-loader@15.11.1/node_modules/vue-loader/lib??vue-loader-options!./packages/super-date/src/panel/date-range.vue?vue&type=template&id=
|
|
1402
|
-
var
|
|
1397
|
+
// CONCATENATED MODULE: ./node_modules/.store/vue-loader@15.11.1/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/.store/vue-loader@15.11.1/node_modules/vue-loader/lib??vue-loader-options!./packages/super-date/src/panel/date-range.vue?vue&type=template&id=2936a8ba
|
|
1398
|
+
var date_rangevue_type_template_id_2936a8ba_render = function () {
|
|
1403
1399
|
var _vm = this
|
|
1404
1400
|
var _h = _vm.$createElement
|
|
1405
1401
|
var _c = _vm._self._c || _h
|
|
@@ -2108,11 +2104,11 @@ var date_rangevue_type_template_id_184ddbf5_render = function () {
|
|
|
2108
2104
|
]
|
|
2109
2105
|
)
|
|
2110
2106
|
}
|
|
2111
|
-
var
|
|
2112
|
-
|
|
2107
|
+
var date_rangevue_type_template_id_2936a8ba_staticRenderFns = []
|
|
2108
|
+
date_rangevue_type_template_id_2936a8ba_render._withStripped = true
|
|
2113
2109
|
|
|
2114
2110
|
|
|
2115
|
-
// CONCATENATED MODULE: ./packages/super-date/src/panel/date-range.vue?vue&type=template&id=
|
|
2111
|
+
// CONCATENATED MODULE: ./packages/super-date/src/panel/date-range.vue?vue&type=template&id=2936a8ba
|
|
2116
2112
|
|
|
2117
2113
|
// EXTERNAL MODULE: external "bi-eleme/lib/mixins/locale"
|
|
2118
2114
|
var locale_ = __webpack_require__(6);
|
|
@@ -4235,7 +4231,7 @@ var date_rangevue_type_script_lang_js_calcDefaultValue = function calcDefaultVal
|
|
|
4235
4231
|
}, _ref['timeUserInput'] = {
|
|
4236
4232
|
min: null,
|
|
4237
4233
|
max: null
|
|
4238
|
-
}, _ref.dynamicRange = [0, 0], _ref.dynamicTypeLeft = 'past', _ref.dynamicTypeRight = 'past', _ref.selectableDays = [], _ref.needTime = false, _ref;
|
|
4234
|
+
}, _ref.dynamicRange = [0, 0], _ref.dynamicTypeLeft = 'past', _ref.dynamicTypeRight = 'past', _ref.selectableDays = [], _ref.selectableDynamicDays = [], _ref.needTime = false, _ref;
|
|
4239
4235
|
},
|
|
4240
4236
|
|
|
4241
4237
|
|
|
@@ -4345,12 +4341,17 @@ var date_rangevue_type_script_lang_js_calcDefaultValue = function calcDefaultVal
|
|
|
4345
4341
|
return daysDiff > this.selectableDays[0] || daysDiff < this.selectableDays[1];
|
|
4346
4342
|
},
|
|
4347
4343
|
dynamicDisabledDate: function dynamicDisabledDate(time) {
|
|
4348
|
-
|
|
4344
|
+
if (!Array.isArray(this.selectableDynamicDays) || this.selectableDynamicDays.length !== 2 || !this.selectableDynamicDays.every(function (v) {
|
|
4345
|
+
return typeof v === 'number';
|
|
4346
|
+
})) {
|
|
4347
|
+
return false;
|
|
4348
|
+
}
|
|
4349
|
+
var daysDiff = Object(date_util_["getDaysDiff"])(time);
|
|
4350
|
+
return daysDiff > this.selectableDynamicDays[0] || daysDiff < this.selectableDynamicDays[1];
|
|
4349
4351
|
},
|
|
4350
4352
|
initDate: function initDate() {
|
|
4351
4353
|
var newVal = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.value;
|
|
4352
4354
|
|
|
4353
|
-
console.log('🚀 ~ newVal:', newVal);
|
|
4354
4355
|
try {
|
|
4355
4356
|
if (!newVal) {
|
|
4356
4357
|
this.minDate = null;
|
|
@@ -4400,18 +4401,15 @@ var date_rangevue_type_script_lang_js_calcDefaultValue = function calcDefaultVal
|
|
|
4400
4401
|
} else if (this.panelType === 'dynamic' && Array.isArray(dynamicRange) && dynamicRange.length === 2) {
|
|
4401
4402
|
this.dynamicRange = Array.from(dynamicRange);
|
|
4402
4403
|
if (typeof dynamicRange[0] === 'string') {
|
|
4403
|
-
console.log('用了defaultTime');
|
|
4404
4404
|
this.dynamicTypeLeft = 'specific';
|
|
4405
4405
|
this.dynamicValue = Object(date_util_["modifyWithTimeString"])(new Date(dynamicRange[0]), this.defaultTime[0]);
|
|
4406
4406
|
|
|
4407
4407
|
this.minDate = Object(date_util_["modifyWithTimeString"])(new Date(dynamicRange[0]), this.defaultTime[0]);
|
|
4408
4408
|
} else {
|
|
4409
|
-
console.log('用了defaultTime');
|
|
4410
4409
|
this.dynamicTypeLeft = 'past';
|
|
4411
4410
|
this.dynamicValue = Object(date_util_["modifyWithTimeString"])(Object(date_util_["setDaysDiff"])(new Date(), this.dynamicRange[0]), this.defaultTime[0]);
|
|
4412
4411
|
this.minDate = Object(date_util_["modifyWithTimeString"])(Object(date_util_["setDaysDiff"])(new Date(), this.dynamicRange[0]), this.defaultTime[0]);
|
|
4413
4412
|
}
|
|
4414
|
-
console.log('用了defaultTime');
|
|
4415
4413
|
this.handleDynamicRange(this.dynamicRange[1]);
|
|
4416
4414
|
this.dynamicDate = Object(date_util_["formatDate"])(this.dynamicValue, 'yyyy-MM-dd');
|
|
4417
4415
|
this.maxDate = Object(date_util_["modifyWithTimeString"])(Object(date_util_["setDaysDiff"])(new Date(), this.dynamicRange[1]), this.defaultTime[1]);
|
|
@@ -4525,7 +4523,6 @@ var date_rangevue_type_script_lang_js_calcDefaultValue = function calcDefaultVal
|
|
|
4525
4523
|
}
|
|
4526
4524
|
},
|
|
4527
4525
|
handleTimeChange: function handleTimeChange(value, type) {
|
|
4528
|
-
console.log('🚀 ~ value:', value);
|
|
4529
4526
|
var parsedValue = Object(date_util_["parseDate"])(value, this.timeFormat);
|
|
4530
4527
|
if (parsedValue) {
|
|
4531
4528
|
if (type === 'min') {
|
|
@@ -4756,8 +4753,8 @@ var date_rangevue_type_script_lang_js_calcDefaultValue = function calcDefaultVal
|
|
|
4756
4753
|
|
|
4757
4754
|
var date_range_component = Object(componentNormalizer["a" /* default */])(
|
|
4758
4755
|
panel_date_rangevue_type_script_lang_js,
|
|
4759
|
-
|
|
4760
|
-
|
|
4756
|
+
date_rangevue_type_template_id_2936a8ba_render,
|
|
4757
|
+
date_rangevue_type_template_id_2936a8ba_staticRenderFns,
|
|
4761
4758
|
false,
|
|
4762
4759
|
null,
|
|
4763
4760
|
null,
|
|
@@ -4768,7 +4765,6 @@ var date_range_component = Object(componentNormalizer["a" /* default */])(
|
|
|
4768
4765
|
/* harmony default export */ var date_range = (date_range_component.exports);
|
|
4769
4766
|
// CONCATENATED MODULE: ./packages/super-date/src/picker/date-picker.js
|
|
4770
4767
|
|
|
4771
|
-
console.log('🚀 ~ Picker:', picker);
|
|
4772
4768
|
|
|
4773
4769
|
|
|
4774
4770
|
/* harmony default export */ var date_picker = ({
|
package/package.json
CHANGED
|
@@ -504,6 +504,7 @@ export default {
|
|
|
504
504
|
dynamicTypeLeft: 'past', // specific | past
|
|
505
505
|
dynamicTypeRight: 'past', // today | yesterday | past
|
|
506
506
|
selectableDays: [],
|
|
507
|
+
selectableDynamicDays: [],
|
|
507
508
|
needTime: false
|
|
508
509
|
}
|
|
509
510
|
},
|
|
@@ -604,10 +605,13 @@ export default {
|
|
|
604
605
|
return daysDiff > this.selectableDays[0] || daysDiff < this.selectableDays[1]
|
|
605
606
|
},
|
|
606
607
|
dynamicDisabledDate(time) {
|
|
607
|
-
|
|
608
|
+
if (!Array.isArray(this.selectableDynamicDays) || this.selectableDynamicDays.length !== 2 || !this.selectableDynamicDays.every((v) => typeof v === 'number')) {
|
|
609
|
+
return false
|
|
610
|
+
}
|
|
611
|
+
const daysDiff = getDaysDiff(time)
|
|
612
|
+
return daysDiff > this.selectableDynamicDays[0] || daysDiff < this.selectableDynamicDays[1]
|
|
608
613
|
},
|
|
609
614
|
initDate(newVal = this.value) {
|
|
610
|
-
console.log('🚀 ~ newVal:', newVal)
|
|
611
615
|
try {
|
|
612
616
|
if (!newVal) {
|
|
613
617
|
this.minDate = null
|
|
@@ -652,18 +656,15 @@ export default {
|
|
|
652
656
|
} else if (this.panelType === 'dynamic' && Array.isArray(dynamicRange) && dynamicRange.length === 2) {
|
|
653
657
|
this.dynamicRange = Array.from(dynamicRange)
|
|
654
658
|
if (typeof dynamicRange[0] === 'string') {
|
|
655
|
-
console.log('用了defaultTime')
|
|
656
659
|
this.dynamicTypeLeft = 'specific'
|
|
657
660
|
this.dynamicValue = modifyWithTimeString(new Date(dynamicRange[0]), this.defaultTime[0])
|
|
658
661
|
|
|
659
662
|
this.minDate = modifyWithTimeString(new Date(dynamicRange[0]), this.defaultTime[0])
|
|
660
663
|
} else {
|
|
661
|
-
console.log('用了defaultTime')
|
|
662
664
|
this.dynamicTypeLeft = 'past'
|
|
663
665
|
this.dynamicValue = modifyWithTimeString(setDaysDiff(new Date(), this.dynamicRange[0]), this.defaultTime[0])
|
|
664
666
|
this.minDate = modifyWithTimeString(setDaysDiff(new Date(), this.dynamicRange[0]), this.defaultTime[0])
|
|
665
667
|
}
|
|
666
|
-
console.log('用了defaultTime')
|
|
667
668
|
this.handleDynamicRange(this.dynamicRange[1])
|
|
668
669
|
this.dynamicDate = formatDate(this.dynamicValue, 'yyyy-MM-dd')
|
|
669
670
|
this.maxDate = modifyWithTimeString(setDaysDiff(new Date(), this.dynamicRange[1]), this.defaultTime[1])
|
|
@@ -776,7 +777,6 @@ export default {
|
|
|
776
777
|
},
|
|
777
778
|
|
|
778
779
|
handleTimeChange(value, type) {
|
|
779
|
-
console.log('🚀 ~ value:', value)
|
|
780
780
|
const parsedValue = parseDate(value, this.timeFormat)
|
|
781
781
|
if (parsedValue) {
|
|
782
782
|
if (type === 'min') {
|
|
@@ -370,6 +370,10 @@ export default {
|
|
|
370
370
|
type: Array,
|
|
371
371
|
default: () => []
|
|
372
372
|
},
|
|
373
|
+
selectableDynamicDays: {
|
|
374
|
+
type: Array,
|
|
375
|
+
default: () => []
|
|
376
|
+
},
|
|
373
377
|
needTime: Boolean
|
|
374
378
|
},
|
|
375
379
|
|
|
@@ -391,7 +395,6 @@ export default {
|
|
|
391
395
|
|
|
392
396
|
watch: {
|
|
393
397
|
pickerVisible(val) {
|
|
394
|
-
console.log('🚀 ~ val:', val)
|
|
395
398
|
if (this.readonly || this.pickerDisabled) return
|
|
396
399
|
if (val) {
|
|
397
400
|
this.showPicker()
|
|
@@ -413,7 +416,6 @@ export default {
|
|
|
413
416
|
handler(val) {
|
|
414
417
|
if (this.picker) {
|
|
415
418
|
this.picker.value = this.mergeDateAndTime(this.value)
|
|
416
|
-
console.log('🚀 ~ this.mergeDateAndTime(this.value):', this.mergeDateAndTime(this.value).date)
|
|
417
419
|
}
|
|
418
420
|
}
|
|
419
421
|
},
|
|
@@ -437,7 +439,6 @@ export default {
|
|
|
437
439
|
|
|
438
440
|
computed: {
|
|
439
441
|
returnedValue() {
|
|
440
|
-
console.log('🚀 ~ returnedValue:')
|
|
441
442
|
const formattedValue = formatAsFormatAndType(this.parsedValue, this.format, this.type, this.rangeSeparator)
|
|
442
443
|
|
|
443
444
|
// 分离日期和时间
|
|
@@ -650,7 +651,6 @@ export default {
|
|
|
650
651
|
},
|
|
651
652
|
|
|
652
653
|
blur() {
|
|
653
|
-
console.log('blur')
|
|
654
654
|
this.refInput.forEach((input) => input.blur())
|
|
655
655
|
},
|
|
656
656
|
|
|
@@ -696,7 +696,6 @@ export default {
|
|
|
696
696
|
const value = this.parseString(this.displayValue)
|
|
697
697
|
if (value) {
|
|
698
698
|
this.picker.value = value
|
|
699
|
-
console.log('🚀 ~ value:', value)
|
|
700
699
|
if (this.isValidValue(value)) {
|
|
701
700
|
this.emitInput(value)
|
|
702
701
|
this.userInput = null
|
|
@@ -732,7 +731,6 @@ export default {
|
|
|
732
731
|
this.userInput = [this.formatToString(value), this.displayValue[1]]
|
|
733
732
|
const newValue = [value, this.picker.value && this.picker.value[1]]
|
|
734
733
|
this.picker.value = newValue
|
|
735
|
-
console.log('🚀 ~ newValue:', newValue)
|
|
736
734
|
if (this.isValidValue(newValue)) {
|
|
737
735
|
this.emitInput(newValue)
|
|
738
736
|
this.userInput = null
|
|
@@ -746,7 +744,6 @@ export default {
|
|
|
746
744
|
this.userInput = [this.displayValue[0], this.formatToString(value)]
|
|
747
745
|
const newValue = [this.picker.value && this.picker.value[0], value]
|
|
748
746
|
this.picker.value = newValue
|
|
749
|
-
console.log('🚀 ~ newValue:', newValue)
|
|
750
747
|
if (this.isValidValue(newValue)) {
|
|
751
748
|
this.emitInput(newValue)
|
|
752
749
|
this.userInput = null
|
|
@@ -818,11 +815,11 @@ export default {
|
|
|
818
815
|
}
|
|
819
816
|
this.pickerVisible = this.picker.visible = true
|
|
820
817
|
this.picker.selectableDays = this.selectableDays
|
|
818
|
+
this.picker.selectableDynamicDays = this.selectableDynamicDays
|
|
821
819
|
this.updatePopper()
|
|
822
820
|
|
|
823
821
|
// 转换parsedValue为包含date、time、type和dynamicRange字段的对象格式
|
|
824
822
|
this.picker.value = this.mergeDateAndTime(this.value)
|
|
825
|
-
console.log('🚀 ~ this.mergeDateAndTime(this.value):', this.mergeDateAndTime(this.value))
|
|
826
823
|
this.picker.resetView && this.picker.resetView()
|
|
827
824
|
|
|
828
825
|
this.$nextTick(() => {
|
|
@@ -885,7 +882,6 @@ export default {
|
|
|
885
882
|
|
|
886
883
|
this.picker.$on('dodestroy', this.doDestroy)
|
|
887
884
|
this.picker.$on('pick', (date = '', visible = false) => {
|
|
888
|
-
console.log('🚀🚀🚀🚀🚀🚀🚀 ~ date:', date)
|
|
889
885
|
this.userInput = null
|
|
890
886
|
this.pickerVisible = this.picker.visible = visible
|
|
891
887
|
this.emitInput(date)
|
|
@@ -921,9 +917,7 @@ export default {
|
|
|
921
917
|
},
|
|
922
918
|
|
|
923
919
|
emitChange(val) {
|
|
924
|
-
console.log('🚀 ~ val:', val)
|
|
925
920
|
// determine user real change only
|
|
926
|
-
console.log('🚀 ~ valueEquals(val, this.valueOnOpen):', valueEquals(val, this.valueOnOpen))
|
|
927
921
|
if (!valueEquals(val, this.valueOnOpen)) {
|
|
928
922
|
this.$emit('change', val)
|
|
929
923
|
this.valueOnOpen = val
|