Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(docs): rewrite VueBreakpointMixin extension page in TS (#407)
Rewrites the documentation for the VueBreakpointMixin extension in the `src/pages/extensions/vuebreakpointmixin` folder in TypeScript. Also includes overlooked Vue 2 → 3 migration. In `example/ExVueBreakpointMixin.vue`: - Imports `VueBreakpointMixin` as `any`, because it does not provide types. A newly introduced type `VueBreakpointMixinType` supplements the types of the computed values of `VueBreakpointMixin`. - Adds the `onMounted` and `beforeUnmount` methods to `VueBreakpointMixin`, which are aliases of the `mounted` and `beforeDestroy` methods respectively, so that `VueBreakpointMixin` conforms to the Vue 3 API In `VueBreakpointMixin.vue`: - Wraps `ExVueBreakpointMixin` in `shallowRef` to address the warning about making a component reactive A tip for TypeScript migration: - Explicitly import and register Buefy components so that they are type-checked. Note that no type-checking is performed for globally registered components.
- Loading branch information