@coreui/vue-pro 4.11.1 → 4.11.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coreui/vue-pro",
3
- "version": "4.11.1",
3
+ "version": "4.11.3",
4
4
  "description": "UI Components Library for Vue.js",
5
5
  "keywords": [
6
6
  "vue",
@@ -846,7 +846,10 @@ const CDateRangePicker = defineComponent({
846
846
  onClick: () => {
847
847
  const date = new Date()
848
848
  startDate.value = date
849
- endDate.value = date
849
+ if (props.range) {
850
+ endDate.value = date
851
+ }
852
+
850
853
  calendarDate.value = date
851
854
  },
852
855
  },
@@ -859,7 +862,10 @@ const CDateRangePicker = defineComponent({
859
862
  color: props.cancelButtonColor,
860
863
  onClick: () => {
861
864
  startDate.value = initialStartDate.value
862
- endDate.value = initialEndDate.value
865
+ if (props.range) {
866
+ endDate.value = initialEndDate.value
867
+ }
868
+
863
869
  visible.value = false
864
870
  },
865
871
  size: props.cancelButtonSize,
@@ -7,6 +7,7 @@ import { executeAfterTransition } from '../../utils/transition'
7
7
 
8
8
  const COffcanvas = defineComponent({
9
9
  name: 'COffcanvas',
10
+ inheritAttrs: false,
10
11
  props: {
11
12
  /**
12
13
  * Apply a backdrop on body while offcanvas is open.
@@ -90,7 +91,7 @@ const COffcanvas = defineComponent({
90
91
  */
91
92
  'show',
92
93
  ],
93
- setup(props, { slots, emit }) {
94
+ setup(props, { attrs, emit, slots }) {
94
95
  const offcanvasRef = ref()
95
96
  const visible = ref(props.visible)
96
97
 
@@ -170,6 +171,7 @@ const COffcanvas = defineComponent({
170
171
  h(
171
172
  'div',
172
173
  {
174
+ ...attrs,
173
175
  class: [
174
176
  {
175
177
  [`offcanvas${
@@ -177,6 +179,7 @@ const COffcanvas = defineComponent({
177
179
  }`]: props.responsive,
178
180
  [`offcanvas-${props.placement}`]: props.placement,
179
181
  },
182
+ attrs.class,
180
183
  ],
181
184
  onKeydown: (event: KeyboardEvent) => handleKeyDown(event),
182
185
  ref: offcanvasRef,