@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/dist/index.js
CHANGED
|
@@ -12388,6 +12388,7 @@ const CNavbarPlugin = {
|
|
|
12388
12388
|
|
|
12389
12389
|
const COffcanvas = vue.defineComponent({
|
|
12390
12390
|
name: 'COffcanvas',
|
|
12391
|
+
inheritAttrs: false,
|
|
12391
12392
|
props: {
|
|
12392
12393
|
/**
|
|
12393
12394
|
* Apply a backdrop on body while offcanvas is open.
|
|
@@ -12470,7 +12471,7 @@ const COffcanvas = vue.defineComponent({
|
|
|
12470
12471
|
*/
|
|
12471
12472
|
'show',
|
|
12472
12473
|
],
|
|
12473
|
-
setup(props, {
|
|
12474
|
+
setup(props, { attrs, emit, slots }) {
|
|
12474
12475
|
const offcanvasRef = vue.ref();
|
|
12475
12476
|
const visible = vue.ref(props.visible);
|
|
12476
12477
|
vue.watch(() => props.visible, () => {
|
|
@@ -12528,11 +12529,13 @@ const COffcanvas = vue.defineComponent({
|
|
|
12528
12529
|
onLeave: (el, done) => handleLeave(el, done),
|
|
12529
12530
|
onAfterLeave: (el) => handleAfterLeave(el),
|
|
12530
12531
|
}, () => vue.withDirectives(vue.h('div', {
|
|
12532
|
+
...attrs,
|
|
12531
12533
|
class: [
|
|
12532
12534
|
{
|
|
12533
12535
|
[`offcanvas${typeof props.responsive === 'boolean' ? '' : '-' + props.responsive}`]: props.responsive,
|
|
12534
12536
|
[`offcanvas-${props.placement}`]: props.placement,
|
|
12535
12537
|
},
|
|
12538
|
+
attrs.class,
|
|
12536
12539
|
],
|
|
12537
12540
|
onKeydown: (event) => handleKeyDown(event),
|
|
12538
12541
|
ref: offcanvasRef,
|