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,
32 lines (31 loc) • 1.28 kB
JavaScript
;
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
const Vue = require("vue");
const util = require("../util.js");
const _hoisted_1 = {
key: 0,
class: "text-box"
};
const _hoisted_2 = ["src"];
const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
__name: "MessageText",
props: ["data"],
setup(__props) {
const props = __props;
const handleTextMessageShowContext = (text) => util.decodeMessageText(text);
return (_ctx, _cache) => {
return Vue.openBlock(), Vue.createElementBlock("span", null, [
(Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(handleTextMessageShowContext(props.data), (item, index) => {
return Vue.openBlock(), Vue.createElementBlock("span", { key: index }, [
item.name === "text" ? (Vue.openBlock(), Vue.createElementBlock("span", _hoisted_1, Vue.toDisplayString(item.text), 1)) : item.name === "img" ? (Vue.openBlock(), Vue.createElementBlock("img", {
key: 1,
class: "text-img",
src: item.src
}, null, 8, _hoisted_2)) : Vue.createCommentVNode("", true)
]);
}), 128))
]);
};
}
});
exports.default = _sfc_main;