@coreui/vue-pro 4.11.1 → 4.11.2
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/index.es.js
CHANGED
|
@@ -8066,7 +8066,9 @@ const CDateRangePicker = defineComponent({
|
|
|
8066
8066
|
onClick: () => {
|
|
8067
8067
|
const date = new Date();
|
|
8068
8068
|
startDate.value = date;
|
|
8069
|
-
|
|
8069
|
+
if (props.range) {
|
|
8070
|
+
endDate.value = date;
|
|
8071
|
+
}
|
|
8070
8072
|
calendarDate.value = date;
|
|
8071
8073
|
},
|
|
8072
8074
|
}, () => props.todayButton),
|
|
@@ -8075,7 +8077,9 @@ const CDateRangePicker = defineComponent({
|
|
|
8075
8077
|
color: props.cancelButtonColor,
|
|
8076
8078
|
onClick: () => {
|
|
8077
8079
|
startDate.value = initialStartDate.value;
|
|
8078
|
-
|
|
8080
|
+
if (props.range) {
|
|
8081
|
+
endDate.value = initialEndDate.value;
|
|
8082
|
+
}
|
|
8079
8083
|
visible.value = false;
|
|
8080
8084
|
},
|
|
8081
8085
|
size: props.cancelButtonSize,
|