roomkit-web-vue3
Version:
<h1 align="center"> TUIRoomKit</h1> Conference (TUIRoomKit) is a product suitable for multi-person audio and video conversation scenarios such as business meetings, webinars, and online education. By integrating this product, you can add room management,
30 lines (29 loc) • 953 B
JavaScript
;
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
const Vue = require("vue");
const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
__name: "SwiperItem",
setup(__props) {
const swiperData = Vue.inject("swiper");
const swiperItemStyle = Vue.ref();
swiperData.addSwiperItem();
Vue.onMounted(() => {
swiperItemStyle.value = {
width: `${swiperData.swiperRef.value.offsetWidth}px`,
height: `${swiperData.swiperRef.value.offsetHeight}px`
};
});
Vue.onUnmounted(() => {
swiperData.removeSwiperItem();
});
return (_ctx, _cache) => {
return Vue.openBlock(), Vue.createElementBlock("div", {
class: "swiper-item",
style: Vue.normalizeStyle(swiperItemStyle.value)
}, [
Vue.renderSlot(_ctx.$slots, "default", {}, void 0, true)
], 4);
};
}
});
exports.default = _sfc_main;