@opensig/opendesign
Version:
30 lines (29 loc) • 842 B
JavaScript
;
const vue = require("vue");
const provide = require("./provide.js");
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
__name: "OCarouselItem",
setup(__props) {
const injection = vue.inject(provide.carouselInjectKey, null);
vue.onMounted(() => {
injection == null ? void 0 : injection.register();
});
vue.onUnmounted(() => {
injection == null ? void 0 : injection.unregister();
});
return (_ctx, _cache) => {
return vue.openBlock(), vue.createElementBlock(
"div",
{
class: vue.normalizeClass([vue.unref(injection) ? `o-carousel-item-${vue.unref(injection).effect}` : "o-carousel-item"])
},
[
vue.renderSlot(_ctx.$slots, "default")
],
2
/* CLASS */
);
};
}
});
module.exports = _sfc_main;