@tencentcloud/roomkit-electron-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,
84 lines (83 loc) • 3.7 kB
JavaScript
"use strict";
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
const Vue = require("vue");
const useRoomInfoHooks = require("./useRoomInfoHooks.js");
const SvgIcon = require("../../common/base/SvgIcon.vue.js");
const ArrowUpIcon = require("../../common/icons/ArrowUpIcon.vue.js");
const CopyIcon = require("../../common/icons/CopyIcon.vue.js");
const vClickOutside = require("../../../directives/vClickOutside.js");
const RoomTime = require("../../common/RoomTime.vue.js");
const _hoisted_1 = { class: "conference-container" };
const _hoisted_2 = { key: 0 };
const _hoisted_3 = { class: "text" };
const _hoisted_4 = {
key: 1,
class: "roomInfo-container"
};
const _hoisted_5 = { class: "roomInfo-title" };
const _hoisted_6 = { class: "roomInfo-item" };
const _hoisted_7 = ["onClick"];
const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
__name: "index",
setup(__props) {
const {
t,
arrowDirection,
isShowRoomInfoTitle,
conferenceTitle,
isShowRoomInfo,
roomInfoTabList,
toggleShowRoomInfoStatus,
handleClickOutsideRoomInfoContainer,
onCopy
} = useRoomInfoHooks.default();
return (_ctx, _cache) => {
return Vue.openBlock(), Vue.createElementBlock("div", _hoisted_1, [
Vue.unref(isShowRoomInfoTitle) ? (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_2, [
Vue.createElementVNode("div", {
class: "title-container",
onClick: _cache[0] || (_cache[0] = Vue.withModifiers(
//@ts-ignore
(...args) => Vue.unref(toggleShowRoomInfoStatus) && Vue.unref(toggleShowRoomInfoStatus)(...args),
["stop"]
))
}, [
Vue.createElementVNode("span", _hoisted_3, Vue.toDisplayString(Vue.unref(conferenceTitle)), 1),
Vue.createVNode(SvgIcon.default, {
class: Vue.normalizeClass(["arrow-icon", { "arrow-down-icon": Vue.unref(arrowDirection) }]),
icon: ArrowUpIcon.default
}, null, 8, ["class"]),
Vue.createVNode(RoomTime.default, { class: "room-timing" })
])
])) : Vue.createCommentVNode("", true),
Vue.unref(isShowRoomInfo) ? Vue.withDirectives((Vue.openBlock(), Vue.createElementBlock("div", _hoisted_4, [
(Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(Vue.unref(roomInfoTabList), (item) => {
return Vue.withDirectives((Vue.openBlock(), Vue.createElementBlock("div", {
key: item.id,
class: "roomInfo-content"
}, [
Vue.createElementVNode("span", _hoisted_5, Vue.toDisplayString(Vue.unref(t)(item.title)), 1),
Vue.createElementVNode("span", _hoisted_6, Vue.toDisplayString(item.content), 1),
item.isShowCopyIcon ? (Vue.openBlock(), Vue.createElementBlock("div", {
key: 0,
class: "copy-container",
onClick: ($event) => Vue.unref(onCopy)(item.copyLink)
}, [
Vue.createVNode(SvgIcon.default, {
class: "copy",
icon: CopyIcon.default
}),
Vue.createElementVNode("span", null, Vue.toDisplayString(Vue.unref(t)("Copy")), 1)
], 8, _hoisted_7)) : Vue.createCommentVNode("", true)
])), [
[Vue.vShow, item.visible]
]);
}), 128))
])), [
[Vue.unref(vClickOutside.default), Vue.unref(handleClickOutsideRoomInfoContainer)]
]) : Vue.createCommentVNode("", true)
]);
};
}
});
exports.default = _sfc_main;