Skip to content
This repository has been archived by the owner on May 23, 2023. It is now read-only.

Commit

Permalink
fix: vue 3 app compat (#322)
Browse files Browse the repository at this point in the history
* fix: make recomponents compatible with @vue/compat mode
  • Loading branch information
Alberto Gualis committed Jun 10, 2022
1 parent 2915151 commit 170d23b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,11 @@
</template>

<script>
import Vue from 'vue';
import PaginationControl from '../r-pagination-control/r-pagination-control.vue';
Vue.component('r-pagination-control', PaginationControl);
export default {
name: 'r-pagination',
components: {'r-pagination-control': PaginationControl},
props: {
/**
* Wrapper for async pagination data provider
Expand Down
8 changes: 7 additions & 1 deletion packages/recomponents/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,13 @@ function install(Vue, options = {}) {
ErrorHandler,
allowClose: allowToastCloseButton,
});
Vue.component('v-date-picker', vDatePicker);

try {
Vue.component('v-date-picker', vDatePicker);
} catch (error) {
// Ignore errors when using Recomponents from @vue/compat mode
}

Vue.component('no-ssr', NoSSR);

/**
Expand Down

0 comments on commit 170d23b

Please sign in to comment.