@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,
33 lines (32 loc) • 940 B
JavaScript
;
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
const Vue = require("vue");
const index = require("./index.vue.js");
const MessageBox = ({
title,
message,
callback,
duration,
cancelButtonText,
confirmButtonText
}) => {
const container = document.createElement("div");
const fullscreenElement = document.fullscreenElement || document.getElementById("roomContainer") || document.getElementById("pre-conference-container");
if (!fullscreenElement) return;
fullscreenElement.appendChild(container);
const onRemove = () => {
Vue.render(null, container);
fullscreenElement.removeChild(container);
};
const vnode = Vue.createVNode(index.default, {
title,
message,
callback,
duration,
cancelButtonText,
confirmButtonText,
remove: onRemove
});
Vue.render(vnode, container);
};
exports.default = MessageBox;