@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,
40 lines (39 loc) • 1.22 kB
JavaScript
;
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
const Vue = require("vue");
const type = require("../type.js");
const IconButton = require("../../common/base/IconButton.vue.js");
const LaserIcon = require("./Icon/LaserIcon.vue.js");
const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
__name: "LaserButton",
props: {
activeTool: String
},
emits: ["click"],
setup(__props, { emit: __emit }) {
const props = __props;
const emit = __emit;
const onClick = () => {
if (props.activeTool === type.DrawingTool.Laser) {
return;
}
emit("click", {
drawingTool: type.DrawingTool.Laser
});
};
return (_ctx, _cache) => {
return Vue.openBlock(), Vue.createBlock(IconButton.default, {
class: "tool-button",
onClickIcon: onClick
}, {
default: Vue.withCtx(() => [
Vue.createVNode(LaserIcon.default, {
class: Vue.normalizeClass({ "whiteboard-icon-active": __props.activeTool === Vue.unref(type.DrawingTool).Laser })
}, null, 8, ["class"])
]),
_: 1
});
};
}
});
exports.default = _sfc_main;