UNPKG

@opensig/opendesign

Version:

<p align="center"><img src="../docs/public/opendesign-logo-light.png"/></p> <h1 align="center">opendesign</h1> <p align="center">一个 Vue 3 组件库</p> <p align="center"><b>皮肤可定制,使用 TypeScript</b></p>

25 lines (24 loc) 698 B
import { defineComponent, inject, createElementBlock, openBlock, normalizeClass, unref, renderSlot } from "vue"; import { carouselInjectKey } from "./provide.mjs"; const _sfc_main = /* @__PURE__ */ defineComponent({ __name: "OCarouselItem", setup(__props) { const injection = inject(carouselInjectKey); return (_ctx, _cache) => { return openBlock(), createElementBlock( "div", { class: normalizeClass([unref(injection) ? `o-carousel-item-${unref(injection).effect}` : "o-carousel-item"]) }, [ renderSlot(_ctx.$slots, "default") ], 2 /* CLASS */ ); }; } }); export { _sfc_main as default };