@coreui/vue-pro 4.11.2 → 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/README.md +1 -1
- package/dist/index.es.js +4 -1
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/offcanvas/COffcanvas.ts +4 -1
package/package.json
CHANGED
|
@@ -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, {
|
|
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,
|