Catalogue Mixins Documentation
A documentation for the common mixins in the catalogue projects
# Quick start guide
Install dependency
npm i @sedoo/catalogue-mixins
In main.js
import CatalogueMixins from "@sedoo/catalogue-mixins";
Vue.use(CatalogueMixins);
By default if there are no options, the plugin will register all mixins.
Cherry-pick
import CatalogueMixins from "@sedoo/catalogue-mixins";
const options = {
i18n: true,
style: true,
visibility: false,
};
Vue.use(CatalogueMixins, options);
In the example above, visibilityMixin won't be registered.
| Option | Mixin associée |
|---|---|
| i18n | i18nMixin |
| style | styleMixin |
| visibility | visibilityModeMixin |