@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,
30 lines (29 loc) • 1.06 kB
JavaScript
;
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
const Vue = require("vue");
const _withScopeId = (n) => (Vue.pushScopeId("data-v-791f9c34"), n = n(), Vue.popScopeId(), n);
const _hoisted_1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ Vue.createElementVNode("div", { class: "switch-core" }, null, -1));
const _hoisted_2 = [
_hoisted_1
];
const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
__name: "TuiSwitch",
props: {
modelValue: { type: Boolean }
},
emits: ["update:modelValue"],
setup(__props, { emit: __emit }) {
const props = __props;
const emit = __emit;
function toggleSwitch() {
emit("update:modelValue", !props.modelValue);
}
return (_ctx, _cache) => {
return Vue.openBlock(), Vue.createElementBlock("div", {
class: Vue.normalizeClass([props.modelValue ? "switch-container" : "switch-container-active"]),
onClick: toggleSwitch
}, _hoisted_2, 2);
};
}
});
exports.default = _sfc_main;