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,
33 lines (32 loc) • 829 B
JavaScript
import { createVNode, render } from "vue";
import TUIMessageBox from "./index.vue.mjs";
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 = () => {
render(null, container);
fullscreenElement.removeChild(container);
};
const vnode = createVNode(TUIMessageBox, {
title,
message,
callback,
duration,
cancelButtonText,
confirmButtonText,
remove: onRemove
});
render(vnode, container);
};
export {
MessageBox as default
};