@hailin-zheng/editor-core 2.0.11 → 2.0.12

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/index.js CHANGED
@@ -25711,11 +25711,13 @@ class EditorCalendarVNode {
25711
25711
  }
25712
25712
  render(position, dataValue) {
25713
25713
  if (!this.currentDate && dataValue) {
25714
- this.currYear.value = moment(dataValue).year();
25715
- this.currMonth.value = moment(dataValue).month();
25716
- this.selectedDate.value = moment(dataValue).format('YYYY-MM-DD');
25714
+ const currDataValue = moment(dataValue);
25715
+ this.currYear.value = currDataValue.year();
25716
+ this.currMonth.value = currDataValue.month();
25717
+ this.selectedDate.value = currDataValue.format('YYYY-MM-DD');
25717
25718
  this.currentDate = dataValue;
25718
- this.currTime.value = moment(dataValue).format('HH:mm:ss');
25719
+ this.currTime.value = currDataValue.format('HH:mm:ss');
25720
+ this.selectedTime.value = this.currTime.value;
25719
25721
  }
25720
25722
  if (!this.currentDate) {
25721
25723
  this.currentDate = moment().format('YYYY-MM-DD');