UNPKG

@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,

63 lines (62 loc) 2.75 kB
"use strict"; Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } }); const Vue = require("vue"); const pinia = require("pinia"); const basic = require("../../../../stores/basic.js"); const _hoisted_1 = { class: "beauty-property-group" }; const _hoisted_2 = { class: "beauty-title" }; const _hoisted_3 = { class: "beauty-panel-container" }; const _hoisted_4 = ["title", "onClick"]; const _hoisted_5 = ["src"]; const _hoisted_6 = { class: "beauty-label" }; const _sfc_main = /* @__PURE__ */ Vue.defineComponent({ __name: "MultiBeauty", props: { beautyType: {}, beautyItems: {} }, emits: ["beauty-property-click"], setup(__props, { emit: __emit }) { const basicStore = basic.useBasicStore(); const { lang } = pinia.storeToRefs(basicStore); const selectedItem = Vue.ref(""); const props = __props; const emit = __emit; function handleBeautyPropertyClick(key, item) { selectedItem.value = item.key; emit("beauty-property-click", props.beautyType, key, item); } return (_ctx, _cache) => { var _a; return Vue.openBlock(), Vue.createElementBlock("div", _hoisted_1, [ (Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList((_a = props.beautyItems.get(props.beautyType)) == null ? void 0 : _a.items, ([key, items]) => { return Vue.openBlock(), Vue.createElementBlock("div", { key, class: "beauty-property-group" }, [ Vue.createElementVNode("div", _hoisted_2, Vue.toDisplayString(Vue.unref(lang) === "zh-CN" ? items.name : items.nameEn), 1), Vue.createElementVNode("div", _hoisted_3, [ (Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(items.items, (item, index) => { return Vue.openBlock(), Vue.createElementBlock("li", { key: index, class: Vue.normalizeClass(["beauty-property-item", { "is-active": selectedItem.value === item.key }]), title: Vue.unref(lang) === "zh-CN" ? item.name : item.nameEn, onClick: ($event) => handleBeautyPropertyClick(key, item) }, [ Vue.createElementVNode("img", { src: item.icon, class: "beauty-property-image" }, null, 8, _hoisted_5), Vue.createElementVNode("div", _hoisted_6, Vue.toDisplayString(Vue.unref(lang) === "zh-CN" ? item.name : item.nameEn), 1) ], 10, _hoisted_4); }), 128)) ]) ]); }), 128)) ]); }; } }); exports.default = _sfc_main;