@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-cjs.js +6 -4
- package/index-cjs.js.map +1 -1
- package/index.js +6 -4
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index-cjs.js
CHANGED
@@ -25741,11 +25741,13 @@ class EditorCalendarVNode {
|
|
25741
25741
|
}
|
25742
25742
|
render(position, dataValue) {
|
25743
25743
|
if (!this.currentDate && dataValue) {
|
25744
|
-
|
25745
|
-
this.
|
25746
|
-
this.
|
25744
|
+
const currDataValue = moment__default["default"](dataValue);
|
25745
|
+
this.currYear.value = currDataValue.year();
|
25746
|
+
this.currMonth.value = currDataValue.month();
|
25747
|
+
this.selectedDate.value = currDataValue.format('YYYY-MM-DD');
|
25747
25748
|
this.currentDate = dataValue;
|
25748
|
-
this.currTime.value =
|
25749
|
+
this.currTime.value = currDataValue.format('HH:mm:ss');
|
25750
|
+
this.selectedTime.value = this.currTime.value;
|
25749
25751
|
}
|
25750
25752
|
if (!this.currentDate) {
|
25751
25753
|
this.currentDate = moment__default["default"]().format('YYYY-MM-DD');
|